core-deployments/prometheus/service-monitor-longhorn.yaml
Aaron Riedel cf76be1d39
All checks were successful
continuous-integration/drone/push Build is passing
add longhorn monitoring
2023-11-24 20:32:50 +01:00

16 lines
343 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: longhorn-prometheus-servicemonitor
namespace: prometheus
labels:
name: longhorn-prometheus-servicemonitor
spec:
selector:
matchLabels:
app: longhorn-manager
namespaceSelector:
matchNames:
- longhorn-system
endpoints:
- port: manager