콘텐츠로 이동

AIX health-check

AIX health-check는 [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

문서 평가

이 페이지가 도움이 되었나요?