core-deployments/prometheus/service-monitor-longhorn.yaml

17 lines
343 B
YAML
Raw Normal View History

2023-11-24 20:32:50 +01:00
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