code/etcd-inmemory-monitoring/servicemonitor.yaml

18 lines
336 B
YAML
Raw Normal View History

2023-04-10 18:52:24 +00:00
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
2023-04-10 19:23:12 +00:00
name: controllerbackupmonitoring
2023-04-10 18:52:24 +00:00
namespace: monitoring
spec:
endpoints:
- honorLabels: true
path: /metrics
port: http
scheme: http
scrapeTimeout: 30s
selector:
matchLabels:
2023-04-10 19:23:12 +00:00
app: controllerbackupmonitoring
2023-04-10 18:52:24 +00:00
targetLabels:
- app