-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option to disable smart agent bundle use
- Loading branch information
Showing
4 changed files
with
178 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
config_sources: | ||
env: | ||
defaults: | ||
HEROKU_DYNO_ID: "unset" | ||
HEROKU_APP_ID: "unset" | ||
HEROKU_APP_NAME: "unset" | ||
|
||
extensions: | ||
health_check: | ||
endpoint: 0.0.0.0:13133 | ||
http_forwarder: | ||
ingress: | ||
endpoint: 0.0.0.0:6060 | ||
egress: | ||
endpoint: "${SPLUNK_API_URL}" | ||
# Use instead when sending to gateway | ||
#endpoint: "${SPLUNK_GATEWAY_URL}" | ||
zpages: | ||
#endpoint: 0.0.0.0:55679 | ||
|
||
receivers: | ||
jaeger: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:14250 | ||
thrift_binary: | ||
endpoint: 0.0.0.0:6832 | ||
thrift_compact: | ||
endpoint: 0.0.0.0:6831 | ||
thrift_http: | ||
endpoint: 0.0.0.0:14268 | ||
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:4317 | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
# This section is used to collect the OpenTelemetry Collector metrics | ||
# Even if just a Splunk APM customer, these metrics are included | ||
prometheus/internal: | ||
config: | ||
scrape_configs: | ||
- job_name: 'otel-collector' | ||
scrape_interval: 10s | ||
static_configs: | ||
- targets: ['0.0.0.0:8888'] | ||
metric_relabel_configs: | ||
- source_labels: [ __name__ ] | ||
regex: '.*grpc_io.*' | ||
action: drop | ||
signalfx: | ||
endpoint: 0.0.0.0:9943 | ||
zipkin: | ||
endpoint: 0.0.0.0:9411 | ||
|
||
processors: | ||
batch: | ||
# Enabling the memory_limiter is strongly recommended for every pipeline. | ||
# Configuration is based on the amount of memory allocated to the collector. | ||
# In general, the ballast should be set to 1/3 of the collector's memory, the limit | ||
# should be 90% of the collector's memory up to 2GB. The simplest way to specify the | ||
# ballast size is set the value of SPLUNK_BALLAST_SIZE_MIB env variable. Alternatively, the | ||
# --mem-ballast-size-mib command line flag can be passed and take priority. | ||
# For more information about memory limiter, see | ||
# https://github.com/open-telemetry/opentelemetry-collector/blob/main/processor/memorylimiter/README.md | ||
memory_limiter: | ||
ballast_size_mib: ${SPLUNK_BALLAST_SIZE_MIB} | ||
check_interval: 2s | ||
limit_mib: ${SPLUNK_MEMORY_LIMIT_MIB} | ||
attributes/heroku: | ||
actions: | ||
- action: insert | ||
key: dyno_id | ||
value: ${env:HEROKU_DYNO_ID} | ||
- action: insert | ||
key: app_id | ||
value: ${env:HEROKU_APP_ID} | ||
- action: insert | ||
key: app_name | ||
value: ${env:HEROKU_APP_NAME} | ||
metricstransform/heroku: | ||
transforms: | ||
- include: .* | ||
match_type: regexp | ||
action: update | ||
operations: | ||
- action: add_label | ||
new_label: dyno_id | ||
new_value: ${env:HEROKU_DYNO_ID} | ||
- action: add_label | ||
new_label: app_id | ||
new_value: ${env:HEROKU_APP_ID} | ||
- action: add_label | ||
new_label: app_name | ||
new_value: ${env:HEROKU_APP_NAME} | ||
# Optional: The following processor can be used to add a default "deployment.environment" attribute to the logs and | ||
# traces when it's not populated by instrumentation libraries. | ||
# If enabled, make sure to enable this processor in the pipeline below. | ||
#resource/add_environment: | ||
#attributes: | ||
#- action: insert | ||
#key: deployment.environment | ||
#value: staging/production/... | ||
|
||
exporters: | ||
# Traces | ||
sapm: | ||
access_token: "${SPLUNK_ACCESS_TOKEN}" | ||
endpoint: "${SPLUNK_TRACE_URL}" | ||
# Metrics + Events | ||
signalfx: | ||
access_token: "${SPLUNK_ACCESS_TOKEN}" | ||
api_url: "${SPLUNK_API_URL}" | ||
ingest_url: "${SPLUNK_INGEST_URL}" | ||
# Send to gateway | ||
#otlp: | ||
# endpoint: "${SPLUNK_GATEWAY_URL}:4317" | ||
# insecure: true | ||
# Debug | ||
logging: | ||
loglevel: debug | ||
|
||
service: | ||
extensions: [health_check, http_forwarder, zpages] | ||
pipelines: | ||
traces: | ||
receivers: [jaeger, otlp, zipkin] | ||
processors: | ||
- memory_limiter | ||
- batch | ||
- attributes/heroku | ||
#- resource/add_environment | ||
exporters: [sapm, signalfx] | ||
metrics: | ||
receivers: [otlp, signalfx] | ||
processors: [memory_limiter, batch, metricstransform/heroku] | ||
exporters: [signalfx] | ||
metrics/internal: | ||
receivers: [prometheus/internal] | ||
processors: [memory_limiter, batch, metricstransform/heroku] | ||
exporters: [signalfx] |