From a0234751d6eaa4a0af8c8ea4076b329538d72102 Mon Sep 17 00:00:00 2001 From: Adam Janikowski <12255597+ajanikow@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:24:55 +0200 Subject: [PATCH] [Bugfix] Change Exporter labels (#1678) --- CHANGELOG.md | 1 + pkg/deployment/resources/servicemonitor.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f0fca103..abfc100b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A) - (Maintenance) Go 1.22.4 & Kubernetes 1.29.6 libraries - (Feature) Fix CRD Schema types +- (Bugfix) Adjust Prometheus Monitor labels ## [1.2.41](https://github.com/arangodb/kube-arangodb/tree/1.2.41) (2024-05-24) - (Maintenance) Bump Prometheus API Version diff --git a/pkg/deployment/resources/servicemonitor.go b/pkg/deployment/resources/servicemonitor.go index 272ba7179..947fc4884 100644 --- a/pkg/deployment/resources/servicemonitor.go +++ b/pkg/deployment/resources/servicemonitor.go @@ -55,7 +55,7 @@ func LabelsForExporterServiceMonitor(name string, obj deploymentApi.DeploymentSp func LabelsForExporterServiceMonitorSelector(name string) map[string]string { return map[string]string{ k8sutil.LabelKeyArangoDeployment: name, - k8sutil.LabelKeyApp: k8sutil.AppName, + k8sutil.LabelKeyArangoExporter: "yes", } }