Prometheus Operator Concepts
Jump to navigation
Jump to search
Internal
Custom Resources
Prometheus Resource
The Prometheus resource declares a "serviceMonitorSelector":
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
...
spec:
serviceMonitorSelector:
matchLabels:
release: prometheus
ServiceMonitor Resource
The labels are important, they must match Prometheus serviceMonitorSelector.
The current service monitor list can be obtained with:
kubectl -n <namespace> get servicemonitors