1
0

add restart triggers to coredns and prometheus

This commit is contained in:
Garionion
2022-07-24 17:15:18 +02:00
parent 2ff4a27d5b
commit 8ca8023dfd
2 changed files with 18 additions and 10 deletions

View File

@@ -270,7 +270,7 @@ with lib;
}
{
job_name = "snmp";
scrape_interval = "5m";
scrape_interval = "120s";
static_configs = [
{
targets = [
@@ -291,6 +291,11 @@ with lib;
];
rules = [ (readFile ./alertmanager-rules.yml) ];
};
systemd.services.prometheus.restartTriggers = [
config.environment.etc."snmp-exporter/snmp.yml".source
];
services.grafana = {
enable = true;
domain = "grafana.bula22.de";