awesome-prometheus-alerts/dist/rules/freeswitch/znerol-freeswitch-exporter.yml
2026-04-06 18:38:45 +00:00

33 lines
1.3 KiB
YAML

groups:
- name: ZnerolFreeswitchExporter
rules:
- alert: FreeswitchDown
expr: 'freeswitch_up == 0'
for: 1m
labels:
severity: critical
annotations:
summary: Freeswitch down (instance {{ $labels.instance }})
description: "Freeswitch {{ $labels.instance }} is unresponsive.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: FreeswitchSessionsWarning
expr: '(freeswitch_session_active * 100 / freeswitch_session_limit) > 80 and freeswitch_session_limit > 0'
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 and freeswitch_session_limit > 0'
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 }}"