AIX IHS
AIX IHS input は、Apache/IHS mod_status を通じて worker、アクセス数、scoreboard を収集します。status_url が未設定の場合は、apachectl -t で稼働確認と設定チェックを行います。
設定¶
[inputs]
# ミドルウェア input の全体スイッチ。
enabled = true
[[inputs.ihs]]
# インスタンス名。instance tag として使用されます。
name = "ihs"
# この IHS インスタンスの収集を有効にするかどうか。
enabled = true
# 収集間隔。
interval = "60s"
# 任意。収集前にインスタンス環境変数を読み込みます。
env_file = ""
# apachectl コマンドのパス。
apachectl = "/opt/IBM/HTTPServer/bin/apachectl"
# mod_status auto の出力先 URL。
status_url = "http://127.0.0.1/server-status?auto"
コマンド依存¶
| コマンド | 説明 |
|---|---|
GET <status_url> |
推奨。server-status?auto のメトリクスを収集します。 |
apachectl -t |
status_url が未設定の場合に IHS の設定と稼働を確認します。 |
メトリクス¶
すべてのメトリクスには host、input=ihs、instance=<name> タグが追加されます。
ihs¶
| Tags & Fields | Description |
|---|---|
| up | IHS が利用可能かどうか。 Type: int | (gauge) |
| status_code | status_url の HTTP ステータスコード。Type: int | (gauge) |
| busy_workers | BusyWorkers。 Type: int | (gauge) Unit: count |
| idle_workers | IdleWorkers。 Type: int | (gauge) Unit: count |
| total_accesses | Total Accesses。 Type: int | (count) Unit: count |
| total_kbytes | Total kBytes。 Type: int | (count) Unit: digital,KB |
| uptime_seconds | IHS の稼働時間。 Type: int | (gauge) Unit: time,s |
| scoreboard_waiting | 待機中の worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_starting | 起動中の worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_reading | リクエスト読込中の worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_sending | レスポンス送信中の worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_keepalive | KeepAlive 中の worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_open_slot | open slot の数。 Type: int | (gauge) Unit: count |