To find out if this integration is available in your organization, see your Datadog Integrations page or ask your organization administrator.
To initiate an exception request to enable this integration for your organization, email support@ddog-gov.com.
概要
gnatsd_streaming サービスからメトリクスをリアルタイムに取得して、以下のことができます。
- gnatsd_streaming の状態を視覚化および監視できます。
- gnatsd_streaming のフェイルオーバーとイベントの通知を受けることができます。
セットアップ
gnatsd_streaming チェックは Datadog Agent パッケージに含まれていないため、お客様自身でインストールする必要があります。
インストール
Agent v7.21 / v6.21 以降の場合は、下記の手順に従い gnatsd_streaming チェックをホストにインストールします。Docker Agent または 上記バージョン以前の Agent でインストールする場合は、コミュニティインテグレーションの使用をご参照ください。
以下のコマンドを実行して、Agent インテグレーションをインストールします。
datadog-agent integration install -t datadog-gnatsd_streaming==<INTEGRATION_VERSION>
コアのインテグレーションと同様にインテグレーションを構成します。
構成
GnatsD のストリーミングメトリクスの収集を開始するには、Agent のコンフィギュレーションディレクトリのルートにある conf.d/ フォルダーの gnatsd_streaming.d/conf.yaml ファイルを編集します。
使用可能なすべてのコンフィギュレーションオプションの詳細については、サンプル gnatsd_streaming.d/conf.yaml を参照してください。
Agent を再起動します。
検証
Agent の status サブコマンドを実行し、Checks セクションで 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” のような名前でタグ付けされます。
イベント
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 のサポートチームまでお問合せください。