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

HTTP check receiver 🔗

Use the HTTP check receiver to perform synthethic checks against HTTP endpoints. The supported pipeline type is metrics. See パイプラインでデータを処理する for more information.

The receiver makes a request to the specified endpoint and generates a metric with a label for each HTTP response status class with a value of 1 if the status code matches the class. For example, the receiver generates the following metrics if the endpoint returns a 200:

  • httpcheck.status{http.status_class:1xx, http.status_code:200,...} = 0

  • httpcheck.status{http.status_class:2xx, http.status_code:200,...} = 1

  • httpcheck.status{http.status_class:3xx, http.status_code:200,...} = 0

  • httpcheck.status{http.status_class:4xx, http.status_code:200,...} = 0

  • httpcheck.status{http.status_class:5xx, http.status_code:200,...} = 0

はじめに 🔗

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

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

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

  3. Collector を再起動します。

サンプル構成 🔗

To activate the receiver, add httpcheck to the receivers section of your configuration file:

receivers:
  httpcheck:

設定を完了するには、設定ファイルの service セクションの metrics パイプラインに、レシーバーを含めます:

service:
  pipelines:
    metrics:
      receivers: [httpcheck]

高度な設定 🔗

The following configuration settings are available:

  • targets. Required. The list of targets to be monitored.

  • collection_interval. Optional. 60s by default. This receiver collects metrics on an interval. Valid time units are ns, us (or µs), ms, s, m, h.

  • initial_delay. Optional. 1s by default. Defines how long this receiver waits before starting.

Each target has the following properties:

  • endpoint. Required. The URL to be monitored.

  • method. Optional. GET by default. The HTTP method used to call the endpoint.

See 設定 for more details. Additionally, targets also support the configuration options listed in HTTP config options for the Collector in GitHub.

設定例 🔗

次の例を参照してください:

receivers:
  httpcheck:
    targets:
      - endpoint: http://endpoint:80
        method: GET
      - endpoint: http://localhost:8080/health
        method: GET
      - endpoint: http://localhost:8081/health
        method: POST
        headers:
          test-header: "test-value"
    collection_interval: 10s

メトリクス 🔗

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

注釈

SignalFxエクスポーターは、デフォルトでいくつかの利用可能なメトリクスを除外します。デフォルトのメトリクス・フィルターについては、デフォルトで除外されるメトリクスのリスト を参照してください。

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

各メトリクスの 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 に送信されません。

設定 🔗

The following table shows the configuration options for the HTTP check receiver:

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

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年05月31日.