From 4de387e72618257f6ad9d473c1174eeb6bfe0da3 Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Mon, 3 Mar 2025 16:26:04 +0200 Subject: [PATCH] Workaround issue with Prometheus 3.0 and metrics (#577) * Add "fallbackScrapeProtocol: PrometheusText0.0.4" to all pod monitors --- charts/pulsar/templates/autorecovery-podmonitor.yaml | 1 + charts/pulsar/templates/bookkeeper-podmonitor.yaml | 1 + charts/pulsar/templates/broker-podmonitor.yaml | 1 + charts/pulsar/templates/oxia-coordinator-podmonitor.yaml | 1 + charts/pulsar/templates/oxia-server-podmonitor.yaml | 1 + charts/pulsar/templates/proxy-podmonitor.yaml | 1 + charts/pulsar/templates/zookeeper-podmonitor.yaml | 1 + 7 files changed, 7 insertions(+) diff --git a/charts/pulsar/templates/autorecovery-podmonitor.yaml b/charts/pulsar/templates/autorecovery-podmonitor.yaml index 213b589..3c8e9cf 100644 --- a/charts/pulsar/templates/autorecovery-podmonitor.yaml +++ b/charts/pulsar/templates/autorecovery-podmonitor.yaml @@ -30,6 +30,7 @@ metadata: heritage: {{ .Release.Service }} spec: jobLabel: recovery + fallbackScrapeProtocol: PrometheusText0.0.4 podMetricsEndpoints: - port: http path: /metrics diff --git a/charts/pulsar/templates/bookkeeper-podmonitor.yaml b/charts/pulsar/templates/bookkeeper-podmonitor.yaml index f2c41bc..341ee85 100644 --- a/charts/pulsar/templates/bookkeeper-podmonitor.yaml +++ b/charts/pulsar/templates/bookkeeper-podmonitor.yaml @@ -30,6 +30,7 @@ metadata: heritage: {{ .Release.Service }} spec: jobLabel: bookie + fallbackScrapeProtocol: PrometheusText0.0.4 podMetricsEndpoints: - port: http path: /metrics diff --git a/charts/pulsar/templates/broker-podmonitor.yaml b/charts/pulsar/templates/broker-podmonitor.yaml index 5d424ac..86703c4 100644 --- a/charts/pulsar/templates/broker-podmonitor.yaml +++ b/charts/pulsar/templates/broker-podmonitor.yaml @@ -30,6 +30,7 @@ metadata: heritage: {{ .Release.Service }} spec: jobLabel: broker + fallbackScrapeProtocol: PrometheusText0.0.4 podMetricsEndpoints: - port: http path: /metrics diff --git a/charts/pulsar/templates/oxia-coordinator-podmonitor.yaml b/charts/pulsar/templates/oxia-coordinator-podmonitor.yaml index cddcba3..54135c3 100644 --- a/charts/pulsar/templates/oxia-coordinator-podmonitor.yaml +++ b/charts/pulsar/templates/oxia-coordinator-podmonitor.yaml @@ -30,6 +30,7 @@ metadata: heritage: {{ .Release.Service }} spec: jobLabel: oxia-coordinator + fallbackScrapeProtocol: PrometheusText0.0.4 podMetricsEndpoints: - port: metrics path: /metrics diff --git a/charts/pulsar/templates/oxia-server-podmonitor.yaml b/charts/pulsar/templates/oxia-server-podmonitor.yaml index 6f2f612..d6d0252 100644 --- a/charts/pulsar/templates/oxia-server-podmonitor.yaml +++ b/charts/pulsar/templates/oxia-server-podmonitor.yaml @@ -30,6 +30,7 @@ metadata: heritage: {{ .Release.Service }} spec: jobLabel: oxia-server + fallbackScrapeProtocol: PrometheusText0.0.4 podMetricsEndpoints: - port: metrics path: /metrics diff --git a/charts/pulsar/templates/proxy-podmonitor.yaml b/charts/pulsar/templates/proxy-podmonitor.yaml index 4823bd2..f753b93 100644 --- a/charts/pulsar/templates/proxy-podmonitor.yaml +++ b/charts/pulsar/templates/proxy-podmonitor.yaml @@ -30,6 +30,7 @@ metadata: heritage: {{ .Release.Service }} spec: jobLabel: proxy + fallbackScrapeProtocol: PrometheusText0.0.4 podMetricsEndpoints: - port: http path: /metrics diff --git a/charts/pulsar/templates/zookeeper-podmonitor.yaml b/charts/pulsar/templates/zookeeper-podmonitor.yaml index 1592903..3efc9f6 100644 --- a/charts/pulsar/templates/zookeeper-podmonitor.yaml +++ b/charts/pulsar/templates/zookeeper-podmonitor.yaml @@ -31,6 +31,7 @@ metadata: heritage: {{ .Release.Service }} spec: jobLabel: zookeeper + fallbackScrapeProtocol: PrometheusText0.0.4 podMetricsEndpoints: - port: http path: /metrics