Skip to content

Commit 140f1d2

Browse files
authored
Merge pull request #994 from csibbitt/csibbitt/OSPRH-34520_edpm-service-alerts
Adding EDPM service alerts
2 parents c32b317 + 010a59f commit 140f1d2

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

‎docs/sample-alerts/openstack-observability-services-status.yaml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,47 @@ spec:
6969
One of the Telemetry Operator ScrapeConfigs is down for more than 1 minute.
7070
Instance: {{ $labels.instance }}
7171
Job: {{ $labels.job }}
72+
- name: openstack-observability.edpm.services.status
73+
rules:
74+
- alert: EdpmPodmanContainerUnhealthyWarning
75+
expr: |
76+
podman_container_health * on (id) group_right podman_container_info{name !~ ".*_init|nova_compute|neutron-haproxy-ovnmeta-.*"} != 0
77+
labels:
78+
severity: warning
79+
annotations:
80+
summary: "EDPM Podman container health check failed (warning)"
81+
description: |
82+
Container {{ $labels.name }} on {{ $labels.fqdn }} has an unhealthy or unknown health status (value: {{ $value }}).
83+
Health values: -1=unknown, 0=healthy, 1=unhealthy, 2=starting.
84+
- alert: EdpmPodmanContainerUnhealthyCritical
85+
expr: |
86+
podman_container_health * on (id) group_right podman_container_info{name !~ ".*_init|nova_compute|neutron-haproxy-ovnmeta-.*"} != 0
87+
for: 60s
88+
labels:
89+
severity: critical
90+
annotations:
91+
summary: "EDPM Podman container health check failed (critical)"
92+
description: |
93+
Container {{ $labels.name }} on {{ $labels.fqdn }} has an unhealthy or unknown health status (value: {{ $value }}) for more than 1 minute.
94+
Health values: -1=unknown, 0=healthy, 1=unhealthy, 2=starting.
95+
- alert: EdpmPodmanContainerNotRunningWarning
96+
expr: |
97+
podman_container_state * on (id) group_right podman_container_info{name !~ ".*_init"} != 2
98+
labels:
99+
severity: warning
100+
annotations:
101+
summary: "EDPM Podman container not running (warning)"
102+
description: |
103+
Container {{ $labels.name }} on {{ $labels.fqdn }} is not in running state (value: {{ $value }}).
104+
State values: -1=unknown, 0=created, 1=initialized, 2=running, 3=stopped, 4=paused, 5=exited, 6=removing, 7=stopping.
105+
- alert: EdpmPodmanContainerNotRunningCritical
106+
expr: |
107+
podman_container_state * on (id) group_right podman_container_info{name !~ ".*_init"} != 2
108+
for: 60s
109+
labels:
110+
severity: critical
111+
annotations:
112+
summary: "EDPM Podman container not running (critical)"
113+
description: |
114+
Container {{ $labels.name }} on {{ $labels.fqdn }} is not in running state (value: {{ $value }}) for more than 1 minute.
115+
State values: -1=unknown, 0=created, 1=initialized, 2=running, 3=stopped, 4=paused, 5=exited, 6=removing, 7=stopping.

0 commit comments

Comments
 (0)