Skip to content

Commit 2954051

Browse files
asreehari-splunkpjanottidmitryax
authored
switch from sapm to otlphttp as default (#5588)
This PR removes sapm from the default configuration, and use otlphttp instead. The sapm exporter has been deprecated in an earlier release. --------- Co-authored-by: Paulo Janotti <[email protected]> Co-authored-by: Dmitrii Anoshin <[email protected]>
1 parent 175c2c3 commit 2954051

File tree

20 files changed

+137
-98
lines changed

20 files changed

+137
-98
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### 🛑 Breaking changes 🛑
6+
7+
- (Splunk) Change default traces exporter to otlphttp exporter. ([#5588](https://github.com/signalfx/splunk-otel-collector/pull/5588)).
8+
59
### 🚀 New components 🚀
610

711
- (Splunk) Add `filestats` receiver ([#5229](https://github.com/signalfx/splunk-otel-collector/pull/5229))
@@ -38,6 +42,7 @@
3842
- (Splunk) Deprecate the collectd/solr monitor. Please use the [jmxreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/jmxreceiver) with the solr target system instead. ([#5539](https://github.com/signalfx/splunk-otel-collector/pull/5539))
3943
- (Splunk) Deprecate the collectd/tomcat monitor. Please use the [jmxreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/jmxreceiver) with the tomcat target system instead. ([#5539](https://github.com/signalfx/splunk-otel-collector/pull/5539))
4044

45+
4146
## v0.114.0
4247

4348
### 💡 Enhancements 💡

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,26 @@ manually before the backward compatibility is dropped. For every configuration u
176176
[the default agent config](https://github.com/signalfx/splunk-otel-collector/blob/main/cmd/otelcol/config/collector/agent_config.yaml)
177177
as a reference.
178178

179+
### From 0.114.0 to 0.115.0
180+
181+
- The sapm exporter still works as before but has been deprecated. Use the otlphttp exporter instead
182+
183+
1. Replace the `sapm` exporter with `otlphttp` exporter using the following configuration
184+
```yaml
185+
otlphttp:
186+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
187+
headers:
188+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
189+
```
190+
2. Update traces pipeline to use otlphttp exporter instead of sapm:
191+
```
192+
service:
193+
pipelines:
194+
traces:
195+
exporters: [otlphttp, signalfx]
196+
```
197+
198+
179199
### From 0.96.1 to 0.97.0
180200
181201
- `memory_ballast` is no longer effective. The garbage collection is now controlled by the soft memory limit set to 90%

cmd/otelcol/config/collector/agent_config.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ processors:
133133

134134
exporters:
135135
# Traces
136-
sapm:
137-
access_token: "${SPLUNK_ACCESS_TOKEN}"
138-
endpoint: "${SPLUNK_INGEST_URL}/v2/trace"
136+
otlphttp:
137+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
138+
headers:
139+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
139140
# Metrics + Events
140141
signalfx:
141142
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -164,7 +165,7 @@ exporters:
164165
endpoint: "${SPLUNK_INGEST_URL}/v1/log"
165166
log_data_enabled: false
166167
# Send to gateway
167-
otlp:
168+
otlp/gateway:
168169
endpoint: "${SPLUNK_GATEWAY_URL}:4317"
169170
tls:
170171
insecure: true
@@ -182,15 +183,15 @@ service:
182183
- batch
183184
- resourcedetection
184185
#- resource/add_environment
185-
exporters: [sapm, signalfx]
186+
exporters: [otlphttp, signalfx]
186187
# Use instead when sending to gateway
187-
#exporters: [otlp, signalfx]
188+
#exporters: [otlp/gateway, signalfx]
188189
metrics:
189190
receivers: [hostmetrics, otlp, signalfx]
190191
processors: [memory_limiter, batch, resourcedetection]
191192
exporters: [signalfx]
192193
# Use instead when sending to gateway
193-
#exporters: [otlp]
194+
#exporters: [otlp/gateway]
194195
metrics/internal:
195196
receivers: [prometheus/internal]
196197
processors: [memory_limiter, batch, resourcedetection, resource/add_mode]
@@ -215,4 +216,4 @@ service:
215216
#- resource/add_environment
216217
exporters: [splunk_hec, splunk_hec/profiling]
217218
# Use instead when sending to gateway
218-
#exporters: [otlp]
219+
#exporters: [otlp/gateway]

cmd/otelcol/config/collector/ecs_ec2_config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ processors:
109109

110110
exporters:
111111
# Traces
112-
sapm:
113-
access_token: "${SPLUNK_ACCESS_TOKEN}"
114-
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
112+
otlphttp:
113+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
114+
headers:
115+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
115116
# Metrics + Events
116117
signalfx:
117118
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -129,7 +130,6 @@ exporters:
129130
token: "${SPLUNK_ACCESS_TOKEN}"
130131
endpoint: "${SPLUNK_INGEST_URL}/v1/log"
131132
log_data_enabled: false
132-
133133
service:
134134
extensions: [health_check, http_forwarder, zpages]
135135
pipelines:
@@ -140,7 +140,7 @@ service:
140140
- batch
141141
- resourcedetection
142142
#- resource/add_environment
143-
exporters: [sapm, signalfx]
143+
exporters: [otlphttp, signalfx]
144144
metrics:
145145
receivers: [hostmetrics, otlp, signalfx, awsecscontainermetrics]
146146
processors: [memory_limiter, batch, filter, resourcedetection]

cmd/otelcol/config/collector/fargate_config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ processors:
9292

9393
exporters:
9494
# Traces
95-
sapm:
96-
access_token: "${SPLUNK_ACCESS_TOKEN}"
97-
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
95+
otlphttp:
96+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
97+
headers:
98+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
9899
# Metrics + Events
99100
signalfx:
100101
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -123,7 +124,7 @@ service:
123124
- batch
124125
- resourcedetection
125126
#- resource/add_environment
126-
exporters: [sapm, signalfx]
127+
exporters: [otlphttp, signalfx]
127128
metrics:
128129
receivers: [otlp, signalfx, awsecscontainermetrics, prometheus/internal]
129130
processors: [memory_limiter, batch, resourcedetection]

cmd/otelcol/config/collector/full_config_linux.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,6 @@ exporters:
647647
headers:
648648
X-SF-TOKEN: "${SPLUNK_ACCESS_TOKEN}"
649649

650-
# Enables the sapm exporter
651-
# Full configuration here: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/sapmexporter
652-
# TODO: Add access token and realm
653-
sapm:
654-
access_token: "${SPLUNK_ACCESS_TOKEN}"
655-
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
656-
657650
# Enables the zipkin exporter
658651
# Full configuration here: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/zipkinexporter
659652
# NOTE: These settings should be updated to the proper destination
@@ -774,7 +767,7 @@ service:
774767
- memory_limiter
775768
- batch
776769
#- resource/add_environment
777-
exporters: [sapm, signalfx]
770+
exporters: [otlphttp, signalfx]
778771
metrics:
779772
receivers: [otlp, signalfx]
780773
processors: [memory_limiter, batch]

cmd/otelcol/config/collector/gateway_config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Configuration file that uses the Splunk exporters (SAPM, SignalFx) to push
1+
# Configuration file that uses the Splunk exporters (OTLP HTTP, SignalFx) to push
22
# data to Splunk products.
33

44
extensions:
@@ -98,11 +98,12 @@ processors:
9898

9999
exporters:
100100
# Traces
101-
sapm:
102-
access_token: "${SPLUNK_ACCESS_TOKEN}"
103-
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
101+
otlphttp:
102+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
104103
sending_queue:
105104
num_consumers: 32
105+
headers:
106+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
106107
# Metrics + Events
107108
signalfx:
108109
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -142,7 +143,7 @@ service:
142143
- memory_limiter
143144
- batch
144145
#- resource/add_environment
145-
exporters: [sapm]
146+
exporters: [otlphttp]
146147
metrics:
147148
receivers: [otlp, signalfx]
148149
processors: [memory_limiter, batch]

cmd/otelcol/config/collector/upstream_agent_config.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,10 @@ processors:
120120

121121
exporters:
122122
# Traces
123-
sapm:
124-
access_token: "${SPLUNK_ACCESS_TOKEN}"
125-
endpoint: "${SPLUNK_INGEST_URL}/v2/trace"
123+
otlphttp:
124+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
125+
headers:
126+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
126127
# Metrics + Events
127128
signalfx:
128129
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -143,7 +144,7 @@ exporters:
143144
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v1/log"
144145
log_data_enabled: false
145146
# Send to gateway
146-
otlp:
147+
otlp/gateway:
147148
endpoint: "${SPLUNK_GATEWAY_URL}:4317"
148149
tls:
149150
insecure: true
@@ -162,30 +163,30 @@ service:
162163
- batch
163164
- resourcedetection
164165
#- resource/add_environment
165-
exporters: [sapm, signalfx]
166+
exporters: [otlphttp, signalfx]
166167
# Use instead when sending to gateway
167-
#exporters: [otlp, signalfx]
168+
#exporters: [otlp/gateway, signalfx]
168169
# Required for Splunk Infrastructure Monitoring
169170
metrics:
170171
receivers: [hostmetrics, otlp, signalfx]
171172
processors: [memory_limiter, batch, resourcedetection]
172173
exporters: [signalfx]
173174
# Use instead when sending to gateway
174-
#exporters: [otlp]
175+
#exporters: [otlp/gateway]
175176
# Required for Splunk APM and/or Infrastructure Monitoring
176177
metrics/internal:
177178
receivers: [prometheus/internal]
178179
processors: [memory_limiter, batch, resourcedetection]
179180
exporters: [signalfx]
180181
# Use instead when sending to gateway
181-
#exporters: [otlp]
182+
#exporters: [otlp/gateway]
182183
# Required for Splunk Infrastructure Monitoring
183184
logs/signalfx:
184185
receivers: [signalfx]
185186
processors: [memory_limiter, batch]
186187
exporters: [signalfx]
187188
# Use instead when sending to gateway
188-
#exporters: [otlp]
189+
#exporters: [otlp/gateway]
189190
logs/entities:
190191
# Receivers are dynamically added if discovery mode is enabled
191192
receivers: [nop]
@@ -201,4 +202,4 @@ service:
201202
#- resource/add_environment
202203
exporters: [splunk_hec/profiling]
203204
# Use instead when sending to gateway
204-
#exporters: [otlp]
205+
#exporters: [otlp/gateway]

cmd/otelcol/fips/config/agent_config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ processors:
116116

117117
exporters:
118118
# Traces
119-
sapm:
120-
access_token: "${SPLUNK_ACCESS_TOKEN}"
121-
endpoint: "${SPLUNK_INGEST_URL}/v2/trace"
119+
otlphttp:
120+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
121+
headers:
122+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
122123
# Metrics + Events
123124
signalfx:
124125
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -165,7 +166,7 @@ service:
165166
- batch
166167
- resourcedetection
167168
#- resource/add_environment
168-
exporters: [sapm, signalfx]
169+
exporters: [otlphttp, signalfx]
169170
# Use instead when sending to gateway
170171
#exporters: [otlp, signalfx]
171172
metrics:

cmd/otelcol/fips/config/ecs_ec2_config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ processors:
111111

112112
exporters:
113113
# Traces
114-
sapm:
115-
access_token: "${SPLUNK_ACCESS_TOKEN}"
116-
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
114+
otlphttp:
115+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
116+
headers:
117+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
117118
# Metrics + Events
118119
signalfx:
119120
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -142,7 +143,7 @@ service:
142143
- batch
143144
- resourcedetection
144145
#- resource/add_environment
145-
exporters: [sapm, signalfx]
146+
exporters: [otlphttp, signalfx]
146147
metrics:
147148
receivers: [hostmetrics, otlp, signalfx]
148149
processors: [memory_limiter, batch, filter, resourcedetection]

cmd/otelcol/fips/config/fargate_config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ processors:
8989

9090
exporters:
9191
# Traces
92-
sapm:
93-
access_token: "${SPLUNK_ACCESS_TOKEN}"
94-
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
92+
otlphttp:
93+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
94+
headers:
95+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
9596
# Metrics + Events
9697
signalfx:
9798
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -120,7 +121,7 @@ service:
120121
- batch
121122
- resourcedetection
122123
#- resource/add_environment
123-
exporters: [sapm, signalfx]
124+
exporters: [otlphttp, signalfx]
124125
metrics:
125126
receivers: [otlp, signalfx, prometheus/internal]
126127
processors: [memory_limiter, batch, resourcedetection]

cmd/otelcol/fips/config/gateway_config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,12 @@ processors:
8989

9090
exporters:
9191
# Traces
92-
sapm:
93-
access_token: "${SPLUNK_ACCESS_TOKEN}"
94-
endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace"
92+
otlphttp:
93+
traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp"
9594
sending_queue:
9695
num_consumers: 32
96+
headers:
97+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
9798
# Metrics + Events
9899
signalfx:
99100
access_token: "${SPLUNK_ACCESS_TOKEN}"
@@ -136,7 +137,7 @@ service:
136137
- memory_limiter
137138
- batch
138139
#- resource/add_environment
139-
exporters: [sapm]
140+
exporters: [otlphttp]
140141
metrics:
141142
receivers: [otlp, signalfx]
142143
processors: [memory_limiter, batch]

deployments/nomad/otel-agent.nomad

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ processors:
201201
override: true
202202
timeout: 10s
203203
exporters:
204-
sapm:
205-
access_token: ${SPLUNK_ACCESS_TOKEN}
206-
endpoint: https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace
207204
signalfx:
208205
access_token: ${SPLUNK_ACCESS_TOKEN}
209206
api_url: https://api.${SPLUNK_REALM}.signalfx.com
@@ -212,6 +209,10 @@ exporters:
212209
sync_host_metadata: true
213210
debug:
214211
verbosity: detailed
212+
otlphttp:
213+
traces_endpoint: "https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace/otlp"
214+
headers:
215+
"X-SF-Token": "${SPLUNK_ACCESS_TOKEN}"
215216
service:
216217
extensions:
217218
- health_check
@@ -241,7 +242,7 @@ service:
241242
traces:
242243
exporters:
243244
- debug
244-
- sapm
245+
- otlphttp
245246
- signalfx
246247
processors:
247248
- memory_limiter

0 commit comments

Comments
 (0)