diff --git a/manifests/infra/prometheus/base/monitor.yaml b/manifests/infra/prometheus/base/monitor.yaml index 1f7226025..04ac00dd6 100644 --- a/manifests/infra/prometheus/base/monitor.yaml +++ b/manifests/infra/prometheus/base/monitor.yaml @@ -76,6 +76,22 @@ spec: --- apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor +metadata: + name: kube-state-metrics + namespace: monitoring +spec: + endpoints: + - path: /metrics + port: http + namespaceSelector: + matchNames: + - monitoring + selector: + matchLabels: + app.kubernetes.io/name: kube-state-metrics +--- +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor metadata: name: argocd-repo-server namespace: monitoring diff --git a/manifests/infra/prometheus/overlays/development/service-monitor-dk.yaml b/manifests/infra/prometheus/overlays/development/service-monitor-dk.yaml index 70ccd7616..97d9b2caa 100644 --- a/manifests/infra/prometheus/overlays/development/service-monitor-dk.yaml +++ b/manifests/infra/prometheus/overlays/development/service-monitor-dk.yaml @@ -7,20 +7,4 @@ spec: namespaceSelector: matchNames: - dreamkast-staging ---- -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: kube-state-metrics - namespace: monitoring -spec: - endpoints: - - path: /metrics - port: http - namespaceSelector: - matchNames: - - monitoring - selector: - matchLabels: - app.kubernetes.io/name: kube-state-metrics