Skip to content

Commit d493438

Browse files
committed
Alert rule for active routers on ML2/OVS
Can detect issues with HA routers on an ML2/OVS deployment.
1 parent 232b220 commit d493438

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
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 eactly one agent"
23+
description: "The router {{ $labels.router_id }} should be active on exactly one agent. It can either active on multiple agents or not active at all."
1524
{% endraw %}
Lines changed: 5 additions & 0 deletions
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 at least one active router on ML2/OVS based
5+
deployments.

0 commit comments

Comments
 (0)