Skip to content

Commit

Permalink
Alert rule for active routers on ML2/OVS
Browse files Browse the repository at this point in the history
Can detect issues with HA routers on an ML2/OVS deployment.
  • Loading branch information
jovial committed Dec 12, 2024
1 parent 232b220 commit d493438
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion etc/kayobe/kolla/config/prometheus/openstack.rules
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,14 @@ groups:
annotations:
summary: "{{ $labels.service }} at {{ $labels.hostname }} is down"
description: "OpenStack service {{ $labels.service }} at {{ $labels.hostname }} is down"

- name: Routers
rules:
- alert: OpenStackRouterDown
expr: count by (router_id) (openstack_neutron_l3_agent_of_router{ha_state="active"}) != 1
for: 1m
labels:
severity: alert
annotations:
summary: "The router {{ $labels.router_id }} is not active on eactly one agent"
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."
{% endraw %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
Adds an alert to check that there is at least one active router on ML2/OVS based
deployments.

0 comments on commit d493438

Please sign in to comment.