awesome-prometheus-alerts/dist/rules/freeswitch/znerol-freeswitch-exporter.yml
Samuel Berthe ccf24bcf03 Publish
2022-06-15 00:08:51 +00:00

32 lines
1.2 KiB
YAML

groups:
- name: ZnerolFreeswitchExporter
rules:
- alert: FreeswitchDown
expr: 'freeswitch_up == 0'
for: 0m
labels:
severity: critical
annotations:
summary: Freeswitch down (instance {{ $labels.instance }})
description: "Freeswitch is unresponsive\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: FreeswitchSessionsWarning
expr: '(freeswitch_session_active * 100 / freeswitch_session_limit) > 80'
for: 10m
labels:
severity: warning
annotations:
summary: Freeswitch Sessions Warning (instance {{ $labels.instance }})
description: "High sessions usage on {{ $labels.instance }}: {{ $value | printf \"%.2f\"}}%\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: FreeswitchSessionsCritical
expr: '(freeswitch_session_active * 100 / freeswitch_session_limit) > 90'
for: 5m
labels:
severity: critical
annotations:
summary: Freeswitch Sessions Critical (instance {{ $labels.instance }})
description: "High sessions usage on {{ $labels.instance }}: {{ $value | printf \"%.2f\"}}%\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"