2022-01-01 21:36:58 +07:00
|
|
|
# TODO alert rules following https://longhorn.io/docs/1.1.0/monitoring/prometheus_and_grafana_setup/
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
2022-01-08 12:50:08 +07:00
|
|
|
name: {{ .Release.Name }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
2022-01-24 22:01:02 +07:00
|
|
|
annotations:
|
|
|
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
2022-01-01 21:36:58 +07:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: longhorn-manager
|
|
|
|
namespaceSelector:
|
|
|
|
matchNames:
|
2022-01-08 12:50:08 +07:00
|
|
|
- {{ .Release.Namespace }}
|
2022-01-01 21:36:58 +07:00
|
|
|
endpoints:
|
2022-01-01 22:02:33 +07:00
|
|
|
- port: manager
|