Add chat.sr.ht rules

Setup alerts monitoring the number of connections to some
well-known IRC networks.
This commit is contained in:
Simon Ser 2022-03-14 16:29:48 +00:00 committed by Drew DeVault
parent 5ce3d52183
commit 4c6a07356d
1 changed files with 22 additions and 0 deletions

22
chat_rules.yml Normal file
View File

@ -0,0 +1,22 @@
groups:
- name: chat.sr.ht
rules:
# No hard limit for OFTC, tilde.chat
- alert: High number of connections to Libera Chat
expr: soju_networks_total{hostname="irc.libera.chat"} > 800 # hard limit: 1k
labels:
severity: important
annotations:
summary: "High number of connections to {{ $labels.hostname }}"
- alert: High number of connections to Rizon
expr: soju_networks_total{hostname="irc.rizon.net"} > 20 # hard limit: 30
labels:
severity: important
annotations:
summary: "High number of connections to {{ $labels.hostname }}"
- alert: High number of connections to esper.net
expr: soju_networks_total{hostname="irc.esper.net"} > 80 # hard limit: 100
labels:
severity: important
annotations:
summary: "High number of connections to {{ $labels.hostname }}"