From ddb3753a217044504fe415ebd43d83e7f6d18da6 Mon Sep 17 00:00:00 2001 From: Mahsa Soleimani Date: Wed, 28 Feb 2024 22:01:14 +0330 Subject: [PATCH] Servicemonitor (#13) * add namespaceSelector to service monitor --------- Co-authored-by: Mahsa --- clients/harbor-client/charts/Chart.yaml | 2 +- clients/harbor-client/charts/templates/servicemonitor.yaml | 3 +++ clients/proxy-client/charts/Chart.yaml | 2 +- clients/proxy-client/charts/templates/servicemonitor.yaml | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/clients/harbor-client/charts/Chart.yaml b/clients/harbor-client/charts/Chart.yaml index 61cde65..18bce74 100644 --- a/clients/harbor-client/charts/Chart.yaml +++ b/clients/harbor-client/charts/Chart.yaml @@ -3,5 +3,5 @@ name: snappcloud-harbor-client description: A Helm chart for snappcloud-harbor-client type: application -version: 0.1.3 +version: 0.1.4 appVersion: "0.0.3" diff --git a/clients/harbor-client/charts/templates/servicemonitor.yaml b/clients/harbor-client/charts/templates/servicemonitor.yaml index db11845..1dd957c 100644 --- a/clients/harbor-client/charts/templates/servicemonitor.yaml +++ b/clients/harbor-client/charts/templates/servicemonitor.yaml @@ -9,6 +9,9 @@ spec: - port: http interval: 30s path: /metrics + namespaceSelector: + matchNames: + - {{ .Release.Namespace }} selector: matchLabels: {{- include "snappcloud-harbor-client.selectorLabels" . | nindent 6 }} diff --git a/clients/proxy-client/charts/Chart.yaml b/clients/proxy-client/charts/Chart.yaml index 6a254f6..011011a 100644 --- a/clients/proxy-client/charts/Chart.yaml +++ b/clients/proxy-client/charts/Chart.yaml @@ -3,5 +3,5 @@ name: snappcloud-proxy-client description: A Helm chart for snappcloud-proxy-client type: application -version: 0.1.3 +version: 0.1.4 appVersion: "0.0.3" diff --git a/clients/proxy-client/charts/templates/servicemonitor.yaml b/clients/proxy-client/charts/templates/servicemonitor.yaml index b3786bd..d4c417c 100644 --- a/clients/proxy-client/charts/templates/servicemonitor.yaml +++ b/clients/proxy-client/charts/templates/servicemonitor.yaml @@ -9,6 +9,9 @@ spec: - port: http interval: 30s path: /metrics + namespaceSelector: + matchNames: + - {{ .Release.Namespace }} selector: matchLabels: {{- include "snappcloud-proxy-client.selectorLabels" . | nindent 6 }}