nixcfg/app/telemetry/config/otel-config.yaml

52 lines
1.1 KiB
YAML
Raw Normal View History

2022-02-17 14:06:09 +00:00
receivers:
# Data sources: metrics, traces
otlp:
protocols:
grpc:
endpoint: ":4317"
http:
endpoint: ":55681"
# Data sources: metrics
prometheus:
config:
scrape_configs:
- job_name: "garage"
scrape_interval: 5s
static_configs:
- targets:
- "localhost:3909"
2022-02-17 14:06:09 +00:00
exporters:
logging:
logLevel: info
# see https://www.elastic.co/guide/en/apm/get-started/current/open-telemetry-elastic.html#open-telemetry-collector
otlp/elastic:
endpoint: "localhost:8200"
tls:
insecure: true
processors:
batch:
2022-02-22 17:30:39 +00:00
probabilistic_sampler:
hash_seed: 42
sampling_percentage: 10
2022-02-17 14:06:09 +00:00
extensions:
health_check:
pprof:
endpoint: :1888
zpages:
endpoint: :55679
service:
extensions: [pprof, zpages, health_check]
pipelines:
traces:
receivers: [otlp]
2022-02-22 17:30:39 +00:00
processors: [probabilistic_sampler, batch]
2022-02-17 14:06:09 +00:00
exporters: [logging, otlp/elastic]
metrics:
receivers: [otlp, prometheus]
processors: [batch]
exporters: [logging, otlp/elastic]