From 4d32bf759d0cdfd775a38320dccd99361551e149 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Thu, 28 Sep 2023 12:17:55 -0700 Subject: [PATCH] update collector configuration to use debug exporter This replaces references to the logging exporter with the debug exporter. Signed-off-by: Alex Boten --- kubernetes/opentelemetry-demo.yaml | 24 +++++++++---------- .../opentelemetry-collector-data-flow.json | 2 +- src/otelcollector/otelcol-config.yml | 8 +++---- src/otelcollector/otelcol-observability.yml | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/kubernetes/opentelemetry-demo.yaml b/kubernetes/opentelemetry-demo.yaml index 49a7062363..ca9575213f 100644 --- a/kubernetes/opentelemetry-demo.yaml +++ b/kubernetes/opentelemetry-demo.yaml @@ -32,7 +32,7 @@ metadata: labels: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "0.82.0" + app.kubernetes.io/version: "0.86.0" --- # Source: opentelemetry-demo/charts/prometheus/templates/serviceaccount.yaml apiVersion: v1 @@ -153,13 +153,13 @@ metadata: labels: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "0.82.0" + app.kubernetes.io/version: "0.86.0" data: relay: | connectors: spanmetrics: null exporters: - logging: {} + debug: {} otlp: endpoint: 'opentelemetry-demo-jaeger-collector:4317' tls: @@ -255,7 +255,7 @@ data: pipelines: logs: exporters: - - logging + - debug processors: - k8sattributes - memory_limiter @@ -265,7 +265,7 @@ data: metrics: exporters: - prometheus - - logging + - debug processors: - k8sattributes - memory_limiter @@ -279,7 +279,7 @@ data: traces: exporters: - otlp - - logging + - debug - spanmetrics processors: - k8sattributes @@ -2311,7 +2311,7 @@ data: "renameByName": { "Time": "", "percent": "Percent", - "{exporter=\"logging\", instance=\"otelcol:8888\", job=\"otel-collector\", service_instance_id=\"fbfa720a-ebf9-45c8-a79a-9d3b6021a663\", service_name=\"otelcol-contrib\", service_version=\"0.70.0\"}": "" + "{exporter=\"debug\", instance=\"otelcol:8888\", job=\"otel-collector\", service_instance_id=\"fbfa720a-ebf9-45c8-a79a-9d3b6021a663\", service_name=\"otelcol-contrib\", service_version=\"0.70.0\"}": "" } } } @@ -5949,7 +5949,7 @@ metadata: labels: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "0.82.0" + app.kubernetes.io/version: "0.86.0" rules: - apiGroups: [""] resources: ["pods", "namespaces"] @@ -6029,7 +6029,7 @@ metadata: labels: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "0.82.0" + app.kubernetes.io/version: "0.86.0" roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole @@ -6212,7 +6212,7 @@ metadata: labels: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "0.82.0" + app.kubernetes.io/version: "0.86.0" component: standalone-collector spec: type: ClusterIP @@ -6908,7 +6908,7 @@ metadata: labels: app.kubernetes.io/name: otelcol app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "0.82.0" + app.kubernetes.io/version: "0.86.0" spec: replicas: 1 revisionHistoryLimit: 10 @@ -6943,7 +6943,7 @@ spec: - --config=/conf/relay.yaml securityContext: {} - image: "otel/opentelemetry-collector-contrib:0.82.0" + image: "otel/opentelemetry-collector-contrib:0.86.0" imagePullPolicy: IfNotPresent ports: - name: jaeger-compact diff --git a/src/grafana/provisioning/dashboards/general/opentelemetry-collector-data-flow.json b/src/grafana/provisioning/dashboards/general/opentelemetry-collector-data-flow.json index 4dce6aec69..9078088e93 100644 --- a/src/grafana/provisioning/dashboards/general/opentelemetry-collector-data-flow.json +++ b/src/grafana/provisioning/dashboards/general/opentelemetry-collector-data-flow.json @@ -1164,7 +1164,7 @@ "renameByName": { "Time": "", "percent": "Percent", - "{exporter=\"logging\", instance=\"otelcol:8888\", job=\"otel-collector\", service_instance_id=\"fbfa720a-ebf9-45c8-a79a-9d3b6021a663\", service_name=\"otelcol-contrib\", service_version=\"0.70.0\"}": "" + "{exporter=\"debug\", instance=\"otelcol:8888\", job=\"otel-collector\", service_instance_id=\"fbfa720a-ebf9-45c8-a79a-9d3b6021a663\", service_name=\"otelcol-contrib\", service_version=\"0.70.0\"}": "" } } } diff --git a/src/otelcollector/otelcol-config.yml b/src/otelcollector/otelcol-config.yml index e96f0ec871..31693a1dce 100644 --- a/src/otelcollector/otelcol-config.yml +++ b/src/otelcollector/otelcol-config.yml @@ -13,7 +13,7 @@ receivers: - "https://*" exporters: - logging: + debug: processors: batch: @@ -36,12 +36,12 @@ service: traces: receivers: [otlp] processors: [batch] - exporters: [logging, spanmetrics] + exporters: [debug, spanmetrics] metrics: receivers: [otlp, spanmetrics] processors: [transform, batch] - exporters: [logging] + exporters: [debug] logs: receivers: [otlp] processors: [batch] - exporters: [logging] + exporters: [debug] diff --git a/src/otelcollector/otelcol-observability.yml b/src/otelcollector/otelcol-observability.yml index 9b7ebd7e2f..ff7ceb65dc 100644 --- a/src/otelcollector/otelcol-observability.yml +++ b/src/otelcollector/otelcol-observability.yml @@ -16,6 +16,6 @@ exporters: service: pipelines: traces: - exporters: [otlp, logging, spanmetrics] + exporters: [otlp, debug, spanmetrics] metrics: - exporters: [prometheus, logging] + exporters: [prometheus, debug]