From e2d13631007a138905f6f61f1131de5a87aa74e5 Mon Sep 17 00:00:00 2001 From: Sjoerd Oostdijck Date: Tue, 21 Nov 2023 09:09:50 +0100 Subject: [PATCH] Metrics must listen on ipv4 and ipv6 Metrics must listen on ipv4 and ipv6 so that this helm chart will work in ipv6 enabled k8s clusters. This is a implementation of a work around found in this bug: https://github.com/fluent/fluentd/issues/3001 Signed-off-by: Sjoerd Oostdijck --- charts/fluentd/templates/files.conf/prometheus.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/fluentd/templates/files.conf/prometheus.yaml b/charts/fluentd/templates/files.conf/prometheus.yaml index e063d106..cbac7813 100644 --- a/charts/fluentd/templates/files.conf/prometheus.yaml +++ b/charts/fluentd/templates/files.conf/prometheus.yaml @@ -13,6 +13,14 @@ data: port 24231 metrics_path "/metrics" + + + @type prometheus + @id in_prometheus6 + bind "::" + port 24231 + metrics_path "/metrics" + @type prometheus_monitor