stack.basicstack.de/velero/servicemonitor.yaml

29 lines
790 B
YAML
Raw Permalink Normal View History

---
# Scrape Velero's built-in Prometheus endpoint (http-monitoring / :8085)
# so kube-prometheus-stack can drive the accompanying PrometheusRule
# (velero/prometheusrule.yaml). The `release: kube-prometheus-stack`
# label is what the operator's serviceMonitorSelector matches.
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: velero
namespace: velero
labels:
app.kubernetes.io/name: velero
app.kubernetes.io/part-of: velero
release: kube-prometheus-stack
spec:
namespaceSelector:
matchNames:
- velero
selector:
matchLabels:
app.kubernetes.io/instance: velero
app.kubernetes.io/name: velero
endpoints:
- port: http-monitoring
path: /metrics
interval: 30s
scrapeTimeout: 10s
scheme: http