diff --git a/hosts/nuc/modules/monitoring/default.nix b/hosts/nuc/modules/monitoring/default.nix index 8c7c03c..9097c6f 100644 --- a/hosts/nuc/modules/monitoring/default.nix +++ b/hosts/nuc/modules/monitoring/default.nix @@ -85,6 +85,7 @@ in services.prometheus = { enable = true; port = 9001; + retentionTime = "1y"; ruleFiles = [ ./synapse-v2.rules ]; @@ -93,19 +94,19 @@ in enable = true; enabledCollectors = [ "systemd" ]; }; - json = { - enable = true; - configFile = pkgs.writeText "json-exporter.yml" '' - --- - modules: - pegelstand: - metrics: - - name: pegelstand_elbe_dresden - path: '{ $.pegel }' - type: value - help: Pegelstand in Dresden - ''; - }; + # json = { + # enable = true; + # configFile = pkgs.writeText "json-exporter.yml" '' + # --- + # modules: + # pegelstand: + # metrics: + # - name: pegelstand_elbe_dresden + # path: '{ $.pegel }' + # type: value + # help: Pegelstand in Dresden + # ''; + # }; }; scrapeConfigs = [ { @@ -140,20 +141,20 @@ in targets = [ "nuc.vpn.rfive.de:9300" ]; }]; } - { - job_name = "pegel_dresden"; - metrics_path = "/probe"; - params = { - module = [ "pegelstand" ]; - target = [ - "https://api.stramke.com/wasserstand/sachsen/Dresden" - ]; - }; - static_configs = [{ - targets = [ "nuc.vpn.rfive.de:7979" ]; - }]; - scrape_interval = "5m"; - } + # { + # job_name = "pegel_dresden"; + # metrics_path = "/probe"; + # params = { + # module = [ "pegelstand" ]; + # target = [ + # "https://api.stramke.com/wasserstand/sachsen/Dresden" + # ]; + # }; + # static_configs = [{ + # targets = [ "nuc.vpn.rfive.de:7979" ]; + # }]; + # scrape_interval = "5m"; + # } { job_name = "caddy"; static_configs = [{