개요
Redis Sentinel 서비스에서 실시간으로 메트릭을 받아 다음을 수행할 수 있습니다.
- Sentinel 상태 시각화 및 모니터링
- 장애 조치에 대한 알림 받기
설정
Redis Sentinel 점검은 Datadog 에이전트 패키지에 포함되어 있지 않으므로 설치해야 합니다.
설치
에이전트 v7.21+/v6.21+의 경우 아래 지침을 따라 호스트에 Redis Sentinel 점검을 설치하세요. 커뮤니티 통합 사용을 확인하여 도커(Docker) 에이전트 또는 이전 버전의 에이전트를 설치합니다.
다음 명령어를 실행해 에이전트 통합을 설치하세요.
datadog-agent integration install -t datadog-redis_sentinel==<INTEGRATION_VERSION>
통합을 코어 통합과 유사하게 설정하세요.
구성
Redis Sentinel 메트릭 수집을 시작하려면 에이전트 설정 디렉토리의 루트에 있는 conf.d/
폴더에서 redis_sentinel.d/conf.yaml
파일을 편집합니다.
사용 가능한 모든 설정 옵션은 upsc.d/conf.yaml 샘플을 참조하세요.
에이전트 재시작
검증
에이전트 상태 하위 명령을 실행하고 점검 섹션에서 redis_sentinel
을 찾습니다.
수집한 데이터
메트릭
| |
---|
redis.sentinel.known_sentinels (gauge) | number of sentinels detected Shown as instance |
redis.sentinel.known_slaves (gauge) | number of slaves detected Shown as instance |
redis.sentinel.last_ok_ping_latency (gauge) | number of seconds since last OK ping Shown as second |
redis.sentinel.ok_sentinels (gauge) | number of sentinels up and running Shown as instance |
redis.sentinel.ok_slaves (gauge) | number of slaves up and running Shown as instance |
redis.sentinel.odown_slaves (gauge) | number of slaves that are in the Objectively Down state Shown as instance |
redis.sentinel.sdown_slaves (gauge) | number of slaves that are in the Subjectively Down state Shown as instance |
redis.sentinel.link_pending_commands (gauge) | number of pending sentinel commands Shown as command |
redis.sentinel.ping_latency (gauge) | latency of a sentinel ping Shown as millisecond |
redis.sentinel.failover (count) | number of failovers detected Shown as occurrence |
이벤트
Redis Sentinel 점검에는 이벤트가 포함되지 않습니다.
서비스 점검
redis.sentinel.master_is_down
Returns CRITICAL
if the master is down, returns OK
otherwise.
Statuses: ok, critical
redis.sentinel.master_is_disconnected
Returns CRITICAL
if the master is disconnected, returns OK
otherwise.
Statuses: ok, critical
redis.sentinel.slave_master_link_down
Returns CRITICAL
if the master link is down, returns OK
otherwise.
Statuses: ok, critical
redis.sentinel.slave_is_disconnected
Returns CRITICAL
if the slave is disconnected, returns OK
otherwise.
Statuses: ok, critical
트러블슈팅
도움이 필요하신가요? Datadog 고객 지원팀에 문의해주세요.