fleet/tools/telemetry/otel-collector-config.yaml
Roberto Dip b8b3ef02e4
add services to inspect traces and monitor a local server (#8597)
This adds tooling to debug and inspect traces locally, please refer to the README.md in this commit for more details.
2022-11-21 10:50:10 -03:00

54 lines
1.1 KiB
YAML

receivers:
otlp:
protocols:
grpc:
# Dummy receiver that's never used, because a pipeline is
# required to have one.
otlp/spanmetrics:
protocols:
grpc:
endpoint: "localhost:65535"
exporters:
prometheus:
endpoint: "0.0.0.0:8889"
logging:
jaeger:
endpoint: jaeger-all-in-one:14250
tls:
insecure: true
processors:
batch:
spanmetrics:
metrics_exporter: prometheus
extensions:
health_check:
pprof:
endpoint: :1888
zpages:
endpoint: :55679
service:
extensions: [zpages, pprof, health_check]
pipelines:
traces:
receivers: [otlp]
processors: [spanmetrics, batch]
exporters: [logging, jaeger]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [logging, prometheus]
# The exporter name in this pipeline must match the
# spanmetrics.metrics_exporter name. The receiver is just a
# dummy and never used; added to pass validation requiring at
# least one receiver in a pipeline.
metrics/spanmetrics:
receivers: [otlp/spanmetrics]
exporters: [prometheus]