AIX ヘルスチェック
AIX ヘルスチェックは [healthcheck] 設定で TCP/HTTP の可用性チェックを行い、既定では無効です。チェック結果はメトリクスとして報告されます。
設定¶
[healthcheck]
# health-check を有効にするか。
enabled = false
# TCP/HTTP health-check の間隔。
interval = "10s"
[[healthcheck.tcp]]
name = "ssh"
# TCP チェックの対象、形式は host:port。
address = "127.0.0.1:22"
timeout = "5s"
[[healthcheck.http]]
name = "local-api"
url = "http://127.0.0.1:8080/health"
method = "GET"
# 期待する HTTP ステータスコード。
status_code = 200
timeout = "5s"
メトリクス¶
host_healthcheck¶
| Tags & Fields | Description |
|---|---|
| host ( tag) |
ホスト名。 |
| name ( tag) |
チェック名。 |
| type ( tag) |
チェック種別。tcp または http のいずれか。 |
| target ( tag) |
チェック対象。HTTP URL 内の機密パラメータは秘匿されます。 |
| status ( tag) |
チェック状態。ok または fail のいずれか。 |
| reason ( tag) |
チェック結果の理由。none、connection_timeout、connection_refused、status_mismatch など。 |
| success | チェックが成功したかどうか。1 は成功、0 は失敗を表します。Type: int | (gauge) Unit: count |
| latency_ms | チェック成功時の所要時間。 Type: int | (gauge) Unit: time,ms |