From 4d20743feb58764e70a0384141b0d68e0a87d788 Mon Sep 17 00:00:00 2001 From: royalcat <k.adamovich20@gmail.com> Date: Mon, 26 Feb 2024 14:31:22 +0300 Subject: [PATCH] fix --- .gitignore | 1 + otel-collector/config.yaml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/otel-collector/config.yaml b/otel-collector/config.yaml index 9acb8d5..93d7a6c 100644 --- a/otel-collector/config.yaml +++ b/otel-collector/config.yaml @@ -9,12 +9,12 @@ processors: batch: exporters: - tempo: + otlp: # tempo endpoint: tempo:4317 - prometheus: - endpoint: http://prometheus:9411/api/prom/push tls: insecure: true + prometheusremotewrite: + endpoint: http://prometheus.example.com:9411/api/prom/push loki: endpoint: http://loki:3100/loki/api/v1/push tls: @@ -23,22 +23,22 @@ exporters: exporter: false job: true -# extensions: -# health_check: -# pprof: -# zpages: +extensions: + health_check: + # pprof: + zpages: service: - extensions: [health_check, pprof, zpages] + extensions: [health_check, zpages] pipelines: traces: receivers: [otlp] processors: [batch] - exporters: [tempo] + exporters: [otlp] metrics: receivers: [otlp] processors: [batch] - exporters: [prometheus] + exporters: [prometheusremotewrite] logs: receivers: [otlp] processors: [batch]