mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-09 11:31:45 +02:00
chore(monitoring): stop scraping offline hosts, mute noisy alert levels
- Add an offlineHosts list to VictoriaMetrics scrape generation: SBCs and the whole k3s-prod-1 cluster are powered off, shoukei's exporter is disabled on the machine; also comment out the dnsmasq-exporter job (runs on suzi). - Disable node-exporter on shoukei: a laptop on untrusted networks should not expose :9100 (the firewall is off repo-wide). - Route severity none|info alerts to the null receiver; meta alerts and info noise should never page. Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
This commit is contained in:
@@ -52,10 +52,10 @@
|
||||
receiver = "telegram";
|
||||
routes = [
|
||||
{
|
||||
# Watchdog & InfoInhibitor are meta alerts that should never notify,
|
||||
# route them to a null receiver.
|
||||
# Meta alerts like Watchdog & InfoInhibitor should never notify,
|
||||
# and info-level alerts are too noisy; route them to a null receiver.
|
||||
receiver = "null";
|
||||
matchers = [ ''severity = "none"'' ];
|
||||
matchers = [ ''severity =~ "none|info"'' ];
|
||||
}
|
||||
{
|
||||
receiver = "telegram";
|
||||
|
||||
Reference in New Issue
Block a user