diff --git a/hosts/monitoring/configuration.nix b/hosts/monitoring/configuration.nix index 0aaf1e2..b5445ce 100644 --- a/hosts/monitoring/configuration.nix +++ b/hosts/monitoring/configuration.nix @@ -272,13 +272,49 @@ with lib; { job_name = "snmp"; scrape_interval = "120s"; + scrape_timeout = "40s"; + metrics_path = "/snmp"; + params = { + module = [ + "if_mib" + ]; + }; static_configs = [ { targets = [ - "[::1]:9116" + "sw-zentral-1.bula22.de" + "sw-zentral-2.bula22.de" + "sw-verwaltung.bula22.de" + "sw-zoll-container.bula22.de" + "sw-zoll-zelt.bula22.de" + "sw-programmtresen.bula22.de" + "sw-international.bula22.de" + "sw-leitstelle.bula22.de" + "sw-infojurte.bula22.de" + "sw-technik-zelt.bula22.de" + "sw-technik-container.bula22.de" + "sw-hospital.bula22.de" + "sw-fuf.bula22.de" + "sw-waschhaus.bula22.de" + "sw-buehne.bula22.de" + "sw-trabantenstadt.bula22.de" ]; } ]; + relabel_configs = [ + { + source_labels = [ "__address__" ]; + target_label = "__param_target"; + } + { + source_labels = [ "__param_target" ]; + target_label = "instance"; + } + { + target_label = "__address__"; + replacement = "[::1]:9116"; + } + ]; } ]; alertmanagers = [