blob: fa5ee0de6f0a07b758bea586fc54c62a3d114889 [file] [log] [blame]
Andy Bavier1cd0a4b2021-04-26 15:24:57 -07001# Copyright 2020-present Open Networking Foundation
2# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
3
4{{- if .Values.prometheus.enabled }}
5apiVersion: monitoring.coreos.com/v1
6kind: PrometheusRule
7metadata:
8 name: {{ include "edge-maintenance-agent.fullname" . }}
9 labels:
10 {{- include "edge-maintenance-agent.labels" . | nindent 4 }}
11spec:
12 groups:
13 - name: ace-maintenance.rules
14 rules:
15 - alert: ScheduledDowntime
16 annotations:
17 message: The cluster is undergoing scheduled maintenance.
18 expr: aetheredge_in_maintenance_window > 0
19 for: 1m
20 labels:
21 severity: info
22{{- end }}