metrics.sr.ht/chat_rules.yml

49 lines
1.9 KiB
YAML

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"} > 1400 # hard limit: 1.5k
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"} > 40 # hard limit: 50
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 }}"
- alert: High number of connections to synIRC
expr: soju_networks_total{hostname="irc.synirc.net"} > 7 # hard limit: 10
labels:
severity: important
annotations:
summary: "High number of connections to {{ $labels.hostname }}"
- alert: High disk usage for soju logs
expr: >
(node_filesystem_size_bytes{mountpoint="/media/soju-logs"}
- node_filesystem_avail_bytes{mountpoint="/media/soju-logs"})
/ node_filesystem_size_bytes{mountpoint="/media/soju-logs"}
> 0.90
labels:
severity: important
annotations:
summary: "Instance {{ $labels.instance }} has high disk usage on {{ $labels.mountpoint }}"
- alert: Full disk for soju logs
expr: >
(node_filesystem_size_bytes{mountpoint="/media/soju-logs"}
- node_filesystem_avail_bytes{mountpoint="/media/soju-logs"})
/ node_filesystem_size_bytes{mountpoint="/media/soju-logs"}
> 0.98
labels:
severity: urgent
annotations:
summary: "Instance {{ $labels.instance }} has a full disk on {{ $labels.mountpoint }}"