개요
gnatsd_streaming 서비스에서 실시간으로 메트릭을 받아 다음을 수행할 수 있습니다.
- gnatsd_streaming 상태 시각화 및 모니터링
- gnatsd_streaming 페일오버와 이벤트에 대한 알림을 받습니다.
설정
gnatsd_streaming 점검은 Datadog 에이전트 패키지에 포함되어 있지 않기 때문에 별도로 설치해야 합니다.
설치
Agent v7.21+ / v6.21+의 경우 아래 지침에 따라 호스트에 gnatsd_streaming 점검을 설치합니다. Docker 에이전트 또는 이전 버전의 에이전트와 함께 설치하려면 커뮤니티 통합 사용을 참조하세요.
다음 명령어를 실행해 에이전트 통합을 설치하세요.
datadog-agent integration install -t datadog-gnatsd_streaming==<INTEGRATION_VERSION>
통합을 코어 통합과 유사하게 설정하세요.
설정
에이전트 설정 디렉토리 루트의 conf.d/
폴더에서 gnatsd_streaming.d/conf.yaml
파일을 편집해 GnatsD 스트리밍 메트릭 데이터 수집을 시작합니다.
사용 가능한 설정 옵션을 전부 확인하려면 gnatsd_streaming.d/conf.yaml 샘플을 참조하세요.
에이전트 재시작
검증
에이전트 상태 하위 명령을 실행하고 점검 섹션에서 gnatsd_streaming
을 찾으세요.
호환성
gnatsd_streaming 점검은 다른 주요 플랫폼과 모두 호환됩니다.
수집한 데이터
메트릭
| |
---|
gnatsd.streaming.serverz.clients (gauge) | The number of currently connectied clients Shown as unit |
gnatsd.streaming.serverz.subscriptions (count) | The number of subscriptions the server has handled Shown as unit |
gnatsd.streaming.serverz.channels (gauge) | The number of currently active channels Shown as unit |
gnatsd.streaming.serverz.total_msgs (count) | The total number of messages passed through the server Shown as unit |
gnatsd.streaming.serverz.total_bytes (count) | The total number of bytes passed through the server Shown as byte |
gnatsd.streaming.storez.total_msgs (count) | The total number of messages passed through the store Shown as unit |
gnatsd.streaming.storez.total_bytes (count) | The total number of bytes passed through the store Shown as byte |
gnatsd.streaming.clientsz.total (gauge) | The number of clients connected Shown as unit |
gnatsd.streaming.channelsz.total (gauge) | The number of channels open Shown as unit |
gnatsd.streaming.channelsz.msgs (count) | The total count of messages in a channel Shown as unit |
gnatsd.streaming.channelsz.bytes (count) | The total bytes of messages in a channel Shown as byte |
Nats Streaming Server metrics are tagged with names like “nss-cluster_id”
Nats 스트리밍 서버 메트릭에는 “nss-cluster_id” 등의 이름이 태그됩니다.
이벤트
결함 포용(Fault Tolerant) 그룹에서 Nats 스트리밍 서버를 실행하는 경우, 서버 상태가 FT_STANDBY
과 FT_ACTIVE
사이에서 변경되면 Nats 스트리밍 페일오버 이벤트가 실행됩니다 .
서비스 점검
gnatsd_streaming.can_connect
Returns CRITICAL
if the Agent can’t connect to the Gnastd Streaming endpoint, OK otherwise
Statuses: ok, critical
트러블슈팅
도움이 필요하신가요? Datadog 고객 지원팀에 문의해주세요.