documentation/fluxcd/repo/infrastructure/base/prometheus/resources/python-metrics-servicemonitor.yaml

17 lines
331 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: python-metrics
spec:
endpoints:
- interval: 15s
port: metrics
path: /metrics
scheme: http
scrapeTimeout: 14s
namespaceSelector:
any: true
selector:
matchLabels:
k8s.example.com/python-metrics-scrape: 'true'