NGINXレシーバー
NGINX レシーバーは、ngx_http_stub_status_module モジュールのステータスエンドポイントを使って、NGINX インスタンスから統計情報を取得します。
NGINX レシーバーは、ngx_http_stub_status_module モジュールの status エンドポイントを使って、NGINX インスタンスから統計情報を取得します。サポートされているパイプラインのタイプは metrics です。詳細については「パイプラインでデータを処理する」を参照してください。
ステータス情報を公開するには、NGINX を設定する必要があります。方法については、NGINX ドキュメントサイトの「HTTP status module config guide」を参照してください。
はじめに
以下の手順に従って、コンポーネントの設定とアクティベーションを行ってください:
-
Splunk Distribution of the OpenTelemetry Collector をホストまたはコンテナプラットフォームにデプロイします:
-
次のセクションで説明するようにレシーバーを設定します。
-
Collector を再起動します。
サンプル構成
NGINXレシーバーを有効にするには、次の例のように、設定ファイルの nginx セクションに receivers を追加します:
receivers:
nginx:
endpoint: "http://localhost:80/status"
collection_interval: 10s
設定を完了するには、構成ファイルの service セクションの metrics パイプラインにレシーバーを含めます。例:
service:
pipelines:
metrics:
receivers: [nginx]
設定オプション
以下の設定が利用できます:
-
endpointします。必須。デフォルトではhttp://localhost:80/statusです。NGINX ステータスエンドポイントの URL。
設定
次の表に、NGINXレシーバーの設定オプションを示します:
同梱
https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/receiver/nginx.yaml
メトリクス
以下のメトリクス、リソース属性、および属性が使用できます。
同梱
https://raw.githubusercontent.com/splunk/collector-config-tools/main/metric-metadata/nginxreceiver.yaml
nginx_connections.reading、nginx_connections.waiting、nginx_connections.writing のメトリクスを提供しません。
トラブルシューティング
If you are a Splunk Observability Cloud customer and are not able to see your data in Splunk Observability Cloud, you can get help in the following ways.
Available to Splunk Observability Cloud customers
-
Submit a case in the Splunk Support Portal.
-
Contact Splunk Support.
Available to prospective customers and free trial users
-
Ask a question and get answers through community support at Splunk Answers.
-
Join the Splunk community #observability Slack channel to communicate with customers, partners, and Splunk employees worldwide.