Docs » Splunk Observability Cloud でサポートされているインテグレーション » Collectorコンポーネント: レシーバー » NGINX receiver

NGINX receiver 🔗

The NGINX receiver fetches stats from a NGINX instance using the ngx_http_stub_status_module module’s status endpoint. The supported pipeline type is metrics. See パイプラインでデータを処理する for more information.

You need to configure NGINX to expose status information. To learn how, see the HTTP status module config guide in the NGINX documentation.

注釈

Out-of-the-box dashboards and navigators aren’t supported for the NGINX Server receiver yet, but are planned for a future release.

はじめに 🔗

以下の手順に従って、コンポーネントの設定とアクティベーションを行ってください:

  1. Splunk Distribution of the OpenTelemetry Collector をホストまたはコンテナプラットフォームにデプロイします:

  2. 次のセクションで説明するようにレシーバーを設定します。

  3. Collector を再起動します。

サンプル構成 🔗

To activate the NGINX receiver, add nginx to the receivers section of your configuration file, as shown in the following example:

receivers:
  nginx:
    endpoint: "http://localhost:80/status"
    collection_interval: 10s

コンフィギュレーションを完了するには、コンフィギュレーションファイルの service セクションの metrics パイプラインに、レシーバーを含めます。例:

service:
  pipelines:
    metrics:
      receivers: [nginx]

設定オプション 🔗

The following settings are available:

  • endpoint. Required. http://localhost:80/status by default. The URL of the NGINX status endpoint.

  • collection_interval. 10s by default. Sets the interval this receiver collects metrics on.

    • This value must be a string readable by Golang’s time.ParseDuration. Learn more at Go’s official documentation ParseDuration function .

    • Valid time units are ns, us (or µs), ms, s, m, h.

  • initial_delay. 1s by default. Determines how long this receiver waits before collecting metrics for the first time.

設定 🔗

The following table shows the configuration options for the NGINX receiver:

メトリクス 🔗

以下のメトリクス、リソース属性、および属性が使用できます。

特定のメトリクスをアクティブまたは非アクティブにする 🔗

各メトリクスの metrics セクションの enabled フィールドを設定することで、特定のメトリクスをアクティブまたは非アクティブにできます。例:

receivers:
  samplereceiver:
    metrics:
      metric-one:
        enabled: true
      metric-two:
        enabled: false

以下は、アクティブ化されたメトリクスを持つホスト・メトリクス・レシーバーの構成例です:

receivers:
  hostmetrics:
    scrapers:
      process:
        metrics:
          process.cpu.utilization:
            enabled: true

注釈

無効化されたメトリクスは Splunk Observability Cloud に送信されません。

トラブルシューティング 🔗

Splunk Observability Cloudをご利用のお客様で、Splunk Observability Cloudでデータを確認できない場合は、以下の方法でサポートを受けることができます。

Splunk Observability Cloudをご利用のお客様

見込み客および無料トライアルユーザー様

  • Splunk Answers のコミュニティサポートで質問し、回答を得る

  • Splunk #observability ユーザーグループの Slack チャンネルに参加して、世界中の顧客、パートナー、Splunk 社員とのコミュニケーションを図る。参加するには、Get Started with Splunk Community マニュアルの チャットグループ を参照してください。

This page was last updated on 2024年09月09日.