52 lines
1.2 KiB
Django/Jinja
52 lines
1.2 KiB
Django/Jinja
---
|
|
{{ ansible_managed | comment }}
|
|
|
|
{% macro raw(string) -%}
|
|
{{ "{{" }} {{ string }} {{ "}}" }}
|
|
{%- endmacro %}
|
|
|
|
groups:
|
|
|
|
- name: environmental.rules
|
|
rules:
|
|
|
|
- alert: EnvironmentalTemperature
|
|
expr: rPDU2SensorTempHumidityStatusTempC / 10 > 30
|
|
for: 10m
|
|
labels:
|
|
severity: warning
|
|
annotations:
|
|
summary: >-
|
|
Température environnementale à {{ raw('$value') }}°
|
|
|
|
- alert: EnvironmentalTemperature
|
|
expr: rPDU2SensorTempHumidityStatusTempC / 10 > 40
|
|
for: 10m
|
|
labels:
|
|
severity: critical
|
|
annotations:
|
|
summary: >-
|
|
Température environnementale à {{ raw('$value') }}°
|
|
|
|
|
|
- alert: EnvironmentalTemperature
|
|
expr: xupsEnvRemoteTemp > 30
|
|
for: 10m
|
|
labels:
|
|
severity: warning
|
|
annotations:
|
|
summary: >-
|
|
Température environnementale à {{ raw('$value') }}°
|
|
|
|
- alert: EnvironmentalTemperature
|
|
expr: xupsEnvRemoteTemp > 40
|
|
for: 10m
|
|
labels:
|
|
severity: critical
|
|
annotations:
|
|
summary: >-
|
|
Température environnementale à {{ raw('$value') }}°
|
|
|
|
|
|
|
|
...
|