AIX health-check
AIX health-check configures TCP/HTTP availability checks through [healthcheck]. It is disabled by default. Check results are reported as metric data.
Configuration¶
[healthcheck]
# Whether to enable health-check.
enabled = false
# TCP/HTTP health-check interval.
interval = "10s"
[[healthcheck.tcp]]
name = "ssh"
# TCP probe target in host:port format.
address = "127.0.0.1:22"
timeout = "5s"
[[healthcheck.http]]
name = "local-api"
url = "http://127.0.0.1:8080/health"
method = "GET"
# Expected HTTP status code.
status_code = 200
timeout = "5s"
Metrics¶
host_healthcheck¶
| Tags & Fields | Description |
|---|---|
| host ( tag) |
Hostname. |
| name ( tag) |
Probe name. |
| type ( tag) |
Probe type, either tcp or http. |
| target ( tag) |
Probe target. Sensitive parameters in HTTP URLs are redacted. |
| status ( tag) |
Probe status, either ok or fail. |
| reason ( tag) |
Probe result reason, such as none, connection_timeout, connection_refused, or status_mismatch. |
| success | Whether the probe succeeded. 1 means success and 0 means failure.Type: int | (gauge) Unit: count |
| latency_ms | Latency when the probe succeeds. Type: int | (gauge) Unit: ms |