From 0d1c2ef8dd6899a580f1d473b39c46e3e9919662 Mon Sep 17 00:00:00 2001 From: Rodrigue Koffi Date: Fri, 2 Jun 2023 17:26:03 +0000 Subject: [PATCH] Add OTLP receiver for custom metrics (#170) --- .../otel-config/templates/opentelemetrycollector.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/eks-monitoring/otel-config/templates/opentelemetrycollector.yaml b/modules/eks-monitoring/otel-config/templates/opentelemetrycollector.yaml index 0f32f589..79fe5508 100644 --- a/modules/eks-monitoring/otel-config/templates/opentelemetrycollector.yaml +++ b/modules/eks-monitoring/otel-config/templates/opentelemetrycollector.yaml @@ -25,14 +25,12 @@ spec: fieldPath: "metadata.namespace" config: | receivers: - {{ if .Values.enableTracing }} otlp: protocols: grpc: endpoint: {{ .Values.otlpGrpcEndpoint }} http: endpoint: {{ .Values.otlpHttpEndpoint }} - {{ end }} prometheus: config: global: @@ -1801,7 +1799,7 @@ spec: extensions: [pprof, zpages, health_check, sigv4auth] pipelines: metrics: - receivers: [prometheus] + receivers: [prometheus, otlp] processors: [batch/metrics] exporters: [logging, prometheusremotewrite] {{ if .Values.enableTracing }}