aboutsummaryrefslogtreecommitdiff
path: root/experimental/bad.telemetry-elastic/config/otel-config.yaml
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-20 17:13:46 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-20 17:13:46 +0200
commit56ff4c5cfdfc7fd84a10bd1d69418109e25c2560 (patch)
tree2dced4fd3861b147e1f3b0f617ecad2cd627571a /experimental/bad.telemetry-elastic/config/otel-config.yaml
parent9b6bdc709253ba20d344bee711e5b7bf29bf03c7 (diff)
downloadnixcfg-56ff4c5cfdfc7fd84a10bd1d69418109e25c2560.tar.gz
nixcfg-56ff4c5cfdfc7fd84a10bd1d69418109e25c2560.zip
Prod-like telemetry into staging
Diffstat (limited to 'experimental/bad.telemetry-elastic/config/otel-config.yaml')
-rw-r--r--experimental/bad.telemetry-elastic/config/otel-config.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/experimental/bad.telemetry-elastic/config/otel-config.yaml b/experimental/bad.telemetry-elastic/config/otel-config.yaml
new file mode 100644
index 0000000..bcf1baa
--- /dev/null
+++ b/experimental/bad.telemetry-elastic/config/otel-config.yaml
@@ -0,0 +1,56 @@
+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:
+ - "{{ env "attr.unique.network.ip-address" }}:3909"
+ - job_name: "node_exporter"
+ scrape_interval: 5s
+ static_configs:
+ - targets:
+ - "{{ env "attr.unique.network.ip-address" }}:9100"
+
+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:
+ probabilistic_sampler:
+ hash_seed: 42
+ sampling_percentage: 10
+
+extensions:
+ health_check:
+ pprof:
+ endpoint: :1888
+ zpages:
+ endpoint: :55679
+
+service:
+ extensions: [pprof, zpages, health_check]
+ pipelines:
+ traces:
+ receivers: [otlp]
+ processors: [probabilistic_sampler, batch]
+ exporters: [logging, otlp/elastic]
+ metrics:
+ receivers: [otlp, prometheus]
+ processors: [batch]
+ exporters: [logging, otlp/elastic]