feat(Prometheus Operator): Move to independant dir and add scraping
This commit is contained in:
parent
13c3b5962f
commit
be41f0f010
@ -3,6 +3,7 @@ kind: Kustomization
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- prometheus-operator
|
||||
- promtail
|
||||
- loki
|
||||
- prometheus
|
||||
|
File diff suppressed because it is too large
Load Diff
3
manifests/prometheus-operator/kustomization.yaml
Normal file
3
manifests/prometheus-operator/kustomization.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
resources:
|
||||
- bundle.yaml
|
||||
- servicemonitor.yaml
|
14
manifests/prometheus-operator/servicemonitor.yaml
Normal file
14
manifests/prometheus-operator/servicemonitor.yaml
Normal 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
|
@ -1,5 +1,4 @@
|
||||
resources:
|
||||
- bundle.yaml
|
||||
- serviceaccount.yaml
|
||||
- clusterrole.yaml
|
||||
- clusterrolebinding.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user