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