@@ -12,15 +12,13 @@ extensions:
12
12
ingress :
13
13
endpoint : 0.0.0.0:6060
14
14
egress :
15
- endpoint : " https://api.${SPLUNK_REALM}.signalfx.com "
15
+ endpoint : " ${SPLUNK_API_URL} "
16
16
# Use instead when sending to gateway
17
17
# endpoint: "${SPLUNK_GATEWAY_URL}"
18
- smartagent :
19
- bundleDir : " ${SPLUNK_BUNDLE_DIR}"
20
- collectd :
21
- configDir : " ${SPLUNK_COLLECTD_DIR}"
22
18
zpages :
23
19
# endpoint: 0.0.0.0:55679
20
+ memory_ballast :
21
+ size_mib : ${SPLUNK_BALLAST_SIZE_MIB}
24
22
25
23
receivers :
26
24
jaeger :
@@ -38,73 +36,57 @@ receivers:
38
36
grpc :
39
37
endpoint : 0.0.0.0:4317
40
38
http :
41
- endpoint : 0.0.0.0:55681
39
+ endpoint : 0.0.0.0:4318
42
40
# This section is used to collect the OpenTelemetry Collector metrics
43
41
# Even if just a Splunk APM customer, these metrics are included
44
42
prometheus/internal :
45
43
config :
46
44
scrape_configs :
47
- - job_name : ' otel-collector'
48
- scrape_interval : 10s
49
- static_configs :
50
- - targets : ['0.0.0.0:8888']
51
- metric_relabel_configs :
52
- - source_labels : [ __name__ ]
53
- regex : ' .*grpc_io.*'
54
- action : drop
55
- smartagent/heroku-metadata :
56
- type : heroku-metadata
57
- smartagent/signalfx-forwarder :
58
- type : signalfx-forwarder
59
- listenAddress : 0.0.0.0:9080
45
+ - job_name : ' otel-collector'
46
+ scrape_interval : 10s
47
+ static_configs :
48
+ - targets : ['0.0.0.0:8888']
49
+ metric_relabel_configs :
50
+ - source_labels : [ __name__ ]
51
+ regex : ' .*grpc_io.*'
52
+ action : drop
60
53
signalfx :
61
54
endpoint : 0.0.0.0:9943
62
55
zipkin :
63
56
endpoint : 0.0.0.0:9411
64
57
65
58
processors :
66
59
batch :
67
- # Enabling the memory_limiter is strongly recommended for every pipeline.
68
- # Configuration is based on the amount of memory allocated to the collector.
69
- # In general, the ballast should be set to 1/3 of the collector's memory, the limit
70
- # should be 90% of the collector's memory up to 2GB. The simplest way to specify the
71
- # ballast size is set the value of SPLUNK_BALLAST_SIZE_MIB env variable. Alternatively, the
72
- # --mem-ballast-size-mib command line flag can be passed and take priority.
73
- # For more information about memory limiter, see
74
- # https://github.com/open-telemetry/opentelemetry-collector/blob/main/processor/memorylimiter/README.md
75
60
memory_limiter :
76
- ballast_size_mib : ${SPLUNK_BALLAST_SIZE_MIB}
77
61
check_interval : 2s
78
62
limit_mib : ${SPLUNK_MEMORY_LIMIT_MIB}
79
63
attributes/heroku :
80
64
actions :
81
- - action : insert
82
- key : dyno_id
83
- value : ${env:HEROKU_DYNO_ID}
84
- - action : insert
85
- key : app_id
86
- value : ${env:HEROKU_APP_ID}
87
- - action : insert
88
- key : app_name
89
- value : ${env:HEROKU_APP_NAME}
90
- # TODO [flands]: Does not work if env var is empty
91
- # Also unclear whether this behaves like insert of attributes processor
65
+ - action : insert
66
+ key : dyno_id
67
+ value : ${env:HEROKU_DYNO_ID}
68
+ - action : insert
69
+ key : app_id
70
+ value : ${env:HEROKU_APP_ID}
71
+ - action : insert
72
+ key : app_name
73
+ value : ${env:HEROKU_APP_NAME}
92
74
metricstransform/heroku :
93
75
transforms :
94
- - include : .*
95
- match_type : regexp
96
- action : update
97
- operations :
98
- - action : add_label
99
- new_label : dyno_id
100
- new_value : ${env:HEROKU_DYNO_ID}
101
- - action : add_label
102
- new_label : app_id
103
- new_value : ${env:HEROKU_APP_ID}
104
- - action : add_label
105
- new_label : app_name
106
- new_value : ${env:HEROKU_APP_NAME}
107
- # Optional: The following processor can be used to add a default "deployment.environment" attribute to the logs and
76
+ - include : .*
77
+ match_type : regexp
78
+ action : update
79
+ operations :
80
+ - action : add_label
81
+ new_label : dyno_id
82
+ new_value : ${env:HEROKU_DYNO_ID}
83
+ - action : add_label
84
+ new_label : app_id
85
+ new_value : ${env:HEROKU_APP_ID}
86
+ - action : add_label
87
+ new_label : app_name
88
+ new_value : ${env:HEROKU_APP_NAME}
89
+ # Optional: The following processor can be used to add a default "deployment.environment" attribute to the logs and
108
90
# traces when it's not populated by instrumentation libraries.
109
91
# If enabled, make sure to enable this processor in the pipeline below.
110
92
# resource/add_environment:
@@ -117,44 +99,43 @@ exporters:
117
99
# Traces
118
100
sapm :
119
101
access_token : " ${SPLUNK_ACCESS_TOKEN}"
120
- endpoint : " https://ingest.${SPLUNK_REALM}.signalfx.com/v2/trace "
102
+ endpoint : " ${SPLUNK_TRACE_URL} "
121
103
# Metrics + Events
122
104
signalfx :
123
105
access_token : " ${SPLUNK_ACCESS_TOKEN}"
124
106
realm : " ${SPLUNK_REALM}"
125
- # Use instead when sending to gateway
126
- # api_url: http://${SPLUNK_GATEWAY_URL}:6060
127
- # ingest_url: http://${SPLUNK_GATEWAY_URL}:9943
107
+ splunk_hec/profiling :
108
+ token : " ${SPLUNK_ACCESS_TOKEN} "
109
+ endpoint : " ${SPLUNK_PROFILING_URL} "
128
110
# Send to gateway
129
111
# otlp:
130
112
# endpoint: "${SPLUNK_GATEWAY_URL}:4317"
131
113
# insecure: true
132
- # Debug
114
+
115
+ # Debug. Add this to the pipeline you want to debug.
133
116
logging :
134
117
loglevel : debug
135
118
136
119
service :
137
- extensions : [health_check, http_forwarder, zpages]
120
+ extensions : [health_check, http_forwarder, zpages, memory_ballast ]
138
121
pipelines :
139
122
traces :
140
- receivers : [jaeger, otlp, smartagent/signalfx-forwarder, zipkin]
123
+ receivers : [jaeger, otlp, zipkin]
141
124
processors :
142
- - memory_limiter
143
- - batch
144
- - attributes/heroku
125
+ - memory_limiter
126
+ - batch
127
+ - attributes/heroku
145
128
# - resource/add_environment
146
129
exporters : [sapm, signalfx]
147
- # Use instead when sending to gateway
148
- # exporters: [otlp, signalfx]
149
130
metrics :
150
- receivers : [otlp, signalfx, smartagent/heroku-metadata, smartagent/signalfx-forwarder ]
131
+ receivers : [otlp, signalfx]
151
132
processors : [memory_limiter, batch, metricstransform/heroku]
152
- exporters : [signalfx, logging]
153
- # Use instead when sending to gateway
154
- # exporters: [otlp]
133
+ exporters : [signalfx]
155
134
metrics/internal :
156
135
receivers : [prometheus/internal]
157
136
processors : [memory_limiter, batch, metricstransform/heroku]
158
137
exporters : [signalfx]
159
- # Use instead when sending to gateway
160
- # exporters: [otlp]
138
+ logs/profiling :
139
+ receivers : [otlp]
140
+ processors : [memory_limiter, batch, attributes/heroku]
141
+ exporters : [splunk_hec/profiling]
0 commit comments