mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-25 19:05:44 +01:00
17 lines
277 B
YAML
17 lines
277 B
YAML
|
apiVersion: monitoring.coreos.com/v1
|
||
|
kind: ServiceMonitor
|
||
|
metadata:
|
||
|
name: prometheus
|
||
|
labels:
|
||
|
k8s-app: prometheus
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
prometheus: k8s
|
||
|
namespaceSelector:
|
||
|
matchNames:
|
||
|
- monitoring
|
||
|
endpoints:
|
||
|
- port: web
|
||
|
interval: 30s
|