From ccf54fd61dc593f38086e79c6c985118ffb1ece8 Mon Sep 17 00:00:00 2001 From: Steffen Moldenhauer <54577793+smoldenhauer-ish@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:06:16 +0100 Subject: [PATCH] Correct query-param name used by prom-exporter probe (#729) A previous change introduced the use of the `names` parameter to avoid exporting metrics, but the correct param-name is `name` (no '-s' suffix). --- controllers/util/prometheus_exporter_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/util/prometheus_exporter_util.go b/controllers/util/prometheus_exporter_util.go index fd8f9a2e..1792e88e 100644 --- a/controllers/util/prometheus_exporter_util.go +++ b/controllers/util/prometheus_exporter_util.go @@ -208,7 +208,7 @@ func GenerateSolrPrometheusExporterDeployment(solrPrometheusExporter *solr.SolrP HTTPGet: &corev1.HTTPGetAction{ Scheme: corev1.URISchemeHTTP, // TODO: When 9.0 is the minimum supported version, this can be "/-/healthy" - Path: "/metrics?names[]=", + Path: "/metrics?name[]=", Port: intstr.FromInt(SolrMetricsPort), }, }