diff options
author | Maximilien <maximilien@deuxfleurs.fr> | 2022-02-17 09:38:57 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-14 10:51:52 +0100 |
commit | b6561f6e1bcb6a8de13a186405a480e356df89d8 (patch) | |
tree | 344f40eae5a2395454c193b0ba67fedfc771543b /script/telemetry/elastic/otel-config.yaml | |
parent | 2cab84b1fe423a41b356211e592a614c95ec4e0c (diff) | |
download | garage-b6561f6e1bcb6a8de13a186405a480e356df89d8.tar.gz garage-b6561f6e1bcb6a8de13a186405a480e356df89d8.zip |
Add docker-compose for traces & metrics
Diffstat (limited to 'script/telemetry/elastic/otel-config.yaml')
-rw-r--r-- | script/telemetry/elastic/otel-config.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/script/telemetry/elastic/otel-config.yaml b/script/telemetry/elastic/otel-config.yaml new file mode 100644 index 00000000..cd119f0a --- /dev/null +++ b/script/telemetry/elastic/otel-config.yaml @@ -0,0 +1,47 @@ +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"] + +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: + +extensions: + health_check: + pprof: + endpoint: :1888 + zpages: + endpoint: :55679 + +service: + extensions: [pprof, zpages, health_check] + pipelines: + traces: + receivers: [otlp] + processors: [batch] + exporters: [logging, otlp/elastic] + metrics: + receivers: [otlp, prometheus] + processors: [batch] + exporters: [logging, otlp/elastic] |