Splunk APM (SAPM)エクスポーター(非推奨)
Splunk APM エクスポータを使用して、複数のノードまたはサービスからトレースを一括送信します。コンポーネントの設定方法については、続きをお読みください。
Splunk APM(SAPM)エクスポータを使用すると、OpenTelemetry Collector から Splunk Observability Cloud にトレースを送信できます。サポートされるパイプラインタイプは traces です。詳細については「パイプラインでデータを処理する」を参照してください。
はじめに
以下の手順に従って、コンポーネントの設定とアクティベーションを行ってください:
-
Splunk Distribution of OpenTelemetry Collector をホストまたはコンテナプラットフォームにデプロイします:
-
このドキュメントで説明されているように、エクスポーターを設定してください。
-
Collector を再起動します。
サンプル構成
以下の例では、最大100コネクション、8ワーカーのSAPMエクスポーターインスタンスを設定しています:
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 セクションにエクスポーターを追加します:
service:
pipelines:
# To complete the configuration, include the exporter in a traces metrics pipeline.
traces:
receivers: [nop]
processors: [nop]
exporters: [sapm]
全設定を含む設定例
次の例は、利用可能なすべての設定を示しています:
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 エクスポーターの設定オプションを示します:
トラブルシューティング
__ ___ ___ _ ______ _____________ _____ ________ ___ ___ ___ ____ __ ___ ____ ____ __ ______ _____________ ______ ___ ___ ___ ____ __ ___ _________ _____
_________ __ ______ _____________ _____ _________
-
______ _ ____ __ ___ ______ _______ _______
-
_______ ______ ________
_________ __ ___________ _________ ___ ____ _____ _____
-
___ _ ________ ___ ___ _______ _______ _________ _______ __ ______ ________
-
____ ___ ______ ______________ ____ _____ _____ _______ __ ___________ ____ __________ _________ ___ ______ _________ __________ __ _____ ___ ____ _______