apps/garage/resources/servicemonitor.yaml

20 lines
388 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: garage
labels:
prometheus: default
spec:
endpoints:
- honorLabels: true
path: /metrics
port: metrics
scheme: http
scrapeTimeout: 30s
jobLabel: garage
namespaceSelector:
matchNames:
- garage
selector:
matchLabels:
app.kubernetes.io/component: metrics