code/etcd-inmemory-monitoring/servicemonitor.yaml

18 lines
336 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: controllerbackupmonitoring
namespace: monitoring
spec:
endpoints:
- honorLabels: true
path: /metrics
port: http
scheme: http
scrapeTimeout: 30s
selector:
matchLabels:
app: controllerbackupmonitoring
targetLabels:
- app