From fbb799602966ffbff3e7f18f979ac37d1b3d9dae Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 24 Apr 2023 00:51:09 -0400 Subject: [PATCH] Change serviceMonitorSelector --- .../apps/monitoring/kube-prometheus-stack/helm-release.yaml | 5 +++++ cluster/apps/monitoring/zfs-exporter/helm-release.yaml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml index b8ec3d5..e2fb7ca 100644 --- a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml +++ b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml @@ -66,3 +66,8 @@ spec: - hosts: - *prometheus-host secretName: wildcard-main-tls + + prometheusSpec: + serviceMonitorSelector: + matchLabels: + monitorWith: prometheus diff --git a/cluster/apps/monitoring/zfs-exporter/helm-release.yaml b/cluster/apps/monitoring/zfs-exporter/helm-release.yaml index ddea2be..5ef8c9a 100644 --- a/cluster/apps/monitoring/zfs-exporter/helm-release.yaml +++ b/cluster/apps/monitoring/zfs-exporter/helm-release.yaml @@ -35,6 +35,10 @@ spec: serviceMonitor: main: enabled: true + + labels: + monitorWith: prometheus + endpoints: - port: http scheme: http