github.com/operator-framework/operator-lifecycle-manager@v0.30.0/deploy/chart/templates/0000_90_olm_01-prometheus-rule.yaml (about) 1 {{ if .Values.monitoring.enabled }} 2 apiVersion: monitoring.coreos.com/v1 3 kind: PrometheusRule 4 metadata: 5 name: olm-alert-rules 6 namespace: {{ .Values.namespace }} 7 labels: 8 prometheus: alert-rules 9 role: alert-rules 10 spec: 11 groups: 12 - name: olm.csv_abnormal.rules 13 rules: 14 - alert: CsvAbnormalFailedOver2Min 15 expr: last_over_time(csv_abnormal{phase="Failed"}[5m]) 16 for: 2m 17 labels: 18 severity: warning 19 annotations: 20 summary: CSV failed for over 2 minutes 21 description: Failed to install Operator {{ printf "{{ $labels.name }}" }} version {{ printf "{{ $labels.version }}" }}. Reason-{{ printf "{{ $labels.reason }}" }} 22 - alert: CsvAbnormalOver30Min 23 expr: last_over_time(csv_abnormal{phase=~"(Replacing|Pending|Deleting|Unknown)"}[5m]) 24 for: 30m 25 labels: 26 severity: warning 27 annotations: 28 summary: CSV abnormal for over 30 minutes 29 description: Failed to install Operator {{ printf "{{ $labels.name }}" }} version {{ printf "{{ $labels.version }}" }}. Phase-{{ printf "{{ $labels.phase }}" }} Reason-{{ printf "{{ $labels.reason }}" }} 30 - name: olm.installplan.rules 31 rules: 32 - alert: InstallPlanStepAppliedWithWarnings 33 expr: sum by(namespace) (increase(installplan_warnings_total[5m])) > 0 34 labels: 35 severity: warning 36 annotations: 37 summary: API returned a warning when modifying an operator 38 description: The API server returned a warning during installation or upgrade of an operator. An Event with reason "AppliedWithWarnings" has been created with complete details, including a reference to the InstallPlan step that generated the warning. 39 {{ end }}