From 54431aeb334fddfb00e4d53911354936e747856e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ma=C5=82ek?= Date: Fri, 17 Dec 2021 15:54:00 +0100 Subject: [PATCH] feat(helm): add configurable otelcol metrics port --- .../helm/sumologic/templates/logs/otelcol/statefulset.yaml | 5 +++++ .../sumologic/templates/metrics/otelcol/statefulset.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml b/deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml index 8de461c2f2..2c1a86d918 100644 --- a/deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml +++ b/deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml @@ -125,6 +125,11 @@ spec: - name: fluent-bit containerPort: 24321 protocol: TCP + {{- if eq .Values.otelcol.metrics.enabled true }} + - name: metrics + containerPort: 8888 + protocol: TCP + {{- end }} livenessProbe: httpGet: path: / diff --git a/deploy/helm/sumologic/templates/metrics/otelcol/statefulset.yaml b/deploy/helm/sumologic/templates/metrics/otelcol/statefulset.yaml index 8e5fad851c..fa01b32847 100644 --- a/deploy/helm/sumologic/templates/metrics/otelcol/statefulset.yaml +++ b/deploy/helm/sumologic/templates/metrics/otelcol/statefulset.yaml @@ -120,6 +120,11 @@ spec: - name: prom-write containerPort: 9888 protocol: TCP + {{- if eq .Values.otelcol.metrics.enabled true }} + - name: metrics + containerPort: 8888 + protocol: TCP + {{- end }} livenessProbe: httpGet: path: /