Skip to content

Commit

Permalink
update TA configs with otlphttp exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
asreehari-splunk committed Dec 13, 2024
1 parent f0f3e3b commit 7c519f0
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 31 deletions.
9 changes: 1 addition & 8 deletions cmd/otelcol/config/collector/full_config_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -647,13 +647,6 @@ exporters:
headers:
X-SF-TOKEN: "${SPLUNK_ACCESS_TOKEN}"

# Enables the sapm exporter
# Full configuration here: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/sapmexporter
# TODO: Add access token and realm
sapm:
access_token: "${SPLUNK_ACCESS_TOKEN}"
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"

# Enables the zipkin exporter
# Full configuration here: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/zipkinexporter
# NOTE: These settings should be updated to the proper destination
Expand Down Expand Up @@ -774,7 +767,7 @@ service:
- memory_limiter
- batch
#- resource/add_environment
exporters: [sapm, signalfx]
exporters: [otlphttp, signalfx]
metrics:
receivers: [otlp, signalfx]
processors: [memory_limiter, batch]
Expand Down
7 changes: 2 additions & 5 deletions cmd/otelcol/config/collector/gateway_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,10 @@ processors:

exporters:
# Traces
sapm:
access_token: "${SPLUNK_ACCESS_TOKEN}"
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
sending_queue:
num_consumers: 32
otlphttp:
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
sending_queue:
num_consumers: 32
headers:
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
# Metrics + Events
Expand Down
7 changes: 2 additions & 5 deletions cmd/otelcol/fips/config/gateway_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,10 @@ processors:

exporters:
# Traces
sapm:
access_token: "${SPLUNK_ACCESS_TOKEN}"
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
sending_queue:
num_consumers: 32
otlphttp:
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
sending_queue:
num_consumers: 32
headers:
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
# Metrics + Events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ processors:

exporters:
# Traces
sapm:
access_token: "${env:SPLUNK_ACCESS_TOKEN}"
endpoint: "${env:SPLUNK_INGEST_URL}/v2/trace"
otlphttp:
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
headers:
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
# Metrics + Events
signalfx:
access_token: "${env:SPLUNK_ACCESS_TOKEN}"
Expand All @@ -148,7 +149,7 @@ service:
- batch
- resourcedetection
#- resource/add_environment
exporters: [sapm, signalfx]
exporters: [otlphttp, signalfx]
metrics:
receivers: [hostmetrics, otlp, signalfx]
processors: [memory_limiter, batch, resourcedetection]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ processors:

exporters:
# Traces
sapm:
access_token: "${env:SPLUNK_ACCESS_TOKEN}"
endpoint: "https://ingest.${env:SPLUNK_REALM}.signalfx.com/v2/trace"
otlphttp:
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
sending_queue:
num_consumers: 32
headers:
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
# Metrics + Events
signalfx:
access_token: "${env:SPLUNK_ACCESS_TOKEN}"
Expand Down Expand Up @@ -130,7 +131,7 @@ service:
- memory_limiter
- batch
#- resource/add_environment
exporters: [sapm]
exporters: [otlphttp]
metrics:
receivers: [otlp, signalfx]
processors: [memory_limiter, batch]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ processors:

exporters:
# Traces
sapm:
access_token: "${env:SPLUNK_ACCESS_TOKEN}"
endpoint: "${env:SPLUNK_INGEST_URL}/v2/trace"
otlphttp:
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
headers:
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
# Metrics + Events
signalfx:
access_token: "${env:SPLUNK_ACCESS_TOKEN}"
Expand All @@ -159,7 +160,7 @@ service:
- batch
- resourcedetection
#- resource/add_environment
exporters: [sapm, signalfx]
exporters: [otlphttp, signalfx]
metrics:
receivers: [hostmetrics, otlp, signalfx]
processors: [memory_limiter, batch, resourcedetection]
Expand Down
1 change: 0 additions & 1 deletion pkg/receiver/smartagentreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ exporters:
access_token: "${SIGNALFX_ACCESS_TOKEN}"
realm: us1
otlphttp:
metrics_endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/datapoint/otlp"
traces_endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace/otlp"
headers:
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
Expand Down

0 comments on commit 7c519f0

Please sign in to comment.