Skip to content

Commit

Permalink
Merge pull request #3193 from cloudnativedaysjp/feature/add-kube-stat…
Browse files Browse the repository at this point in the history
…e-metrics

move kube-state-metrics monitor to kustomize base
  • Loading branch information
ureuzy committed Apr 11, 2024
2 parents 630a80b + e83e2c7 commit ebec766
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 16 additions & 0 deletions manifests/infra/prometheus/base/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ebec766

Please sign in to comment.