From 87cdabceb79bc3582c596ac9e00db6a64eba9ee2 Mon Sep 17 00:00:00 2001 From: ajanikow <12255597+ajanikow@users.noreply.github.com> Date: Wed, 10 Jul 2024 12:37:20 +0000 Subject: [PATCH] [Bugfix] Change Exporter labels --- 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", } }