feat(Prometheus Operator): Move to independant dir and add scraping

This commit is contained in:
Tanguy Herbron 2023-07-29 09:41:01 +02:00
parent 13c3b5962f
commit be41f0f010
5 changed files with 935 additions and 13 deletions

View File

@ -3,6 +3,7 @@ kind: Kustomization
resources:
- namespace.yaml
- prometheus-operator
- promtail
- loki
- prometheus

View File

@ -0,0 +1,3 @@
resources:
- bundle.yaml
- servicemonitor.yaml

View File

@ -0,0 +1,14 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: prometheus-operator
namespace: monitoring
labels:
team: core
spec:
selector:
matchLabels:
app.kubernetes.io/name: prometheus-operator
endpoints:
- port: http
path: /metrics

View File

@ -1,5 +1,4 @@
resources:
- bundle.yaml
- serviceaccount.yaml
- clusterrole.yaml
- clusterrolebinding.yaml