Skip to content

Commit 0cb9900

Browse files
authored
Merge pull request #1424 from stackhpc/feature/2024.1/routers-ha-alert
Alert rule for active routers on ML2/OVS
2 parents be6886c + 1466ea6 commit 0cb9900

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

etc/kayobe/kolla/config/prometheus/openstack.rules

+10-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,14 @@ groups:
1111
annotations:
1212
summary: "{{ $labels.service }} at {{ $labels.hostname }} is down"
1313
description: "OpenStack service {{ $labels.service }} at {{ $labels.hostname }} is down"
14-
14+
- name: Routers
15+
rules:
16+
- alert: OpenStackRouterDown
17+
expr: count by (router_id) (openstack_neutron_l3_agent_of_router{ha_state="active"}) != 1
18+
for: 1m
19+
labels:
20+
severity: alert
21+
annotations:
22+
summary: "The router {{ $labels.router_id }} is not active on exactly one agent"
23+
description: "The router {{ $labels.router_id }} should be active on exactly one agent. It can either be active on multiple agents or not active at all."
1524
{% endraw %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Adds an alert to check that there is exactly one active router on ML2/OVS based
5+
deployments.

0 commit comments

Comments
 (0)