Skip to content

Commit 49c1915

Browse files
committed
feat(ironic): alert when server fails cleaning
1 parent 4e5fd54 commit 49c1915

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

components/ironic/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ resources:
1717
# Graphical consoles
1818
- role-ironic-graphical-console.yaml
1919
- role-binding-ironic-graphical-console.yaml
20+
# Alerting
21+
- pr-clean-failed-servers.yaml
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: monitoring.coreos.com/v1
2+
kind: PrometheusRule
3+
metadata:
4+
name: ironic-clean-failed-servers
5+
namespace: openstack
6+
spec:
7+
groups:
8+
- name: ironic.rules
9+
interval: 30s
10+
rules:
11+
- alert: IronicCleanFailedServer
12+
expr: openstack_ironic_node{provision_state="clean failed"} == 1
13+
for: 30s
14+
labels:
15+
severity: warning
16+
annotations:
17+
summary: "Ironic node {{ $labels.name }} in clean failed state"
18+
description: "Ironic node {{ $labels.name }} (ID: {{ $labels.id }}) is in 'clean failed' provision state"

0 commit comments

Comments
 (0)