Splunk APM (SAPM)エクスポーター(非推奨)

Splunk APM エクスポータを使用して、複数のノードまたはサービスからトレースを一括送信します。コンポーネントの設定方法については、続きをお読みください。

注意: SAPM エクスポータは廃止されており、2025 年 4 月に削除されます。Splunk Observability Cloud にトレースを送信するには、代わりに OTLP/HTTP エクスポータを使用します。

Splunk APM(SAPM)エクスポータを使用すると、OpenTelemetry Collector から Splunk Observability Cloud にトレースを送信できます。サポートされるパイプラインタイプは traces です。詳細については「パイプラインでデータを処理する」を参照してください。

はじめに

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

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

  2. このドキュメントで説明されているように、エクスポーターを設定してください。

  3. Collector を再起動します。

サンプル構成

以下の例では、最大100コネクション、8ワーカーのSAPMエクスポーターインスタンスを設定しています:

YAML
exporters:
  sapm:
    access_token: <access_token>
    access_token_passthrough: true
    endpoint: https://ingest.<realm>.signalfx.com/v2/trace
    max_connections: 100
    num_workers: 8

次に、設定ファイルの services セクションにエクスポーターを追加します:

YAML
service:
  pipelines:
    # To complete the configuration, include the exporter in a traces metrics pipeline.
    traces:
        receivers: [nop]
        processors: [nop]
        exporters: [sapm]

全設定を含む設定例

次の例は、利用可能なすべての設定を示しています:

YAML
exporters:
  sapm/customname:
    # Endpoint is the destination to where traces are sent in SAPM format.
    # The endpoint must be a full URL and include the scheme, port, and path.
    # For example, https://ingest.us0.signalfx.com/v2/trace
    endpoint: test-endpoint
    # Authentication token provided by Splunk Observability Cloud.
    access_token: abcd1234
    # Number of workers that should be used to export traces.
    # The exporter can make as many requests in parallel as the number of workers.
    num_workers: 3
    # Used to set a limit to the maximum idle HTTP connections the exporter can keep open.
    max_connections: 45
    access_token_passthrough: false
    # Timeout for every attempt to send data to the back end.
    # The default value is 5s.
    timeout: 10s
    sending_queue:
      enabled: true
      num_consumers: 2
      queue_size: 10
    retry_on_failure:
      enabled: true
      initial_interval: 10s
      max_interval: 60s
      max_elapsed_time: 10m

service:
  pipelines:
    traces:
        receivers: [nop]
        processors: [nop]
        exporters: [sapm]

エンドポイント URL で、realm は Splunk Observability Cloud レルムで、たとえば us0 です。Splunk レルムを見つけるには、「Note about realms」を参照してください。

注: SAPM データをプロキシ経由で送信するには、プロキシ設定を環境変数として設定します。詳しくは「Configure proxy settings for the Collector」を参照してください。

設定

次の表に、SAPM エクスポーターの設定オプションを示します:

トラブルシューティング

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

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.