prometheus: add iLO alert rules
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Alexandre Iooss 2021-12-31 21:19:35 +01:00
parent 2830558545
commit 40d9108b37
2 changed files with 59 additions and 1 deletions

View file

@ -38,10 +38,10 @@
loop:
- server.rules.yml
- docker.rules.yml
- django.rules.yml
- ups.rules.yml
- postgres.rules.yml
- environmental.rules.yml
- ilo.rules.yml
notify: Restart Prometheus
- name: Make Prometheus snmp-exporter listen on localhost only

View file

@ -0,0 +1,58 @@
---
{{ ansible_managed | comment }}
{% macro raw(string) -%}
{{ "{{" }} {{ string }} {{ "}}" }}
{%- endmacro %}
groups:
- name: ilo.rules
rules:
- alert: IloBiosSelfTestDegraded
expr: cpqHeHWBiosCondition >= 3
for: 3m
labels:
severity: critical
annotations:
summary: >-
Une erreur a été détectée lors du POST du serveur
- alert: IloTemperatureSensorDegraded
expr: cpqHeTemperatureCondition >= 3
for: 3m
labels:
severity: critical
annotations:
summary: >-
Le capteur de température est dégradé
- alert: IloFanDegraded
expr: cpqHeFltTolFanCondition >= 3
for: 3m
labels:
severity: critical
annotations:
summary: >-
Le ventilateur est dégradé
- alert: IloPowerSupplyDegraded
expr: cpqHeFltTolPowerSupplyStatus >= 2
for: 3m
labels:
severity: critical
annotations:
summary: >-
L'alimentation est dégradée
- alert: IloOverrideSwitchState
expr: cpqSm2CntlriLOSecurityOverrideSwitchState == 2
for: 3m
labels:
severity: critical
annotations:
summary: >-
Le switch de réinitialisation n'est pas à l'état d'origine
...