diff --git a/morph/lib/storage.nix b/morph/lib/storage.nix index 60e80b8ba5538048a339a4464034041c4ee71dcd..123742a258ae4b0322cf18748a00175b76beb5b8 100644 --- a/morph/lib/storage.nix +++ b/morph/lib/storage.nix @@ -44,23 +44,25 @@ in { }; }; - services.private-storage.monitoring.exporters.node.enable = true; - services.private-storage.monitoring.exporters.tahoe.enable = true; - services.private-storage.monitoring.exporters.promtail.enable = true; - services.private-storage.monitoring.exporters.promtail.extraScrapeConfigs = [ - { - job_name = "tahoe-corruption-advisories"; - static_configs = [ - { - targets = [ "localhost" ]; - labels = { - job = "tahoe-corruption-advisories"; - __path__ = "/storage/corruption-advisories/*"; - }; - } - ]; - } - ]; + services.private-storage.monitoring.exporters = { + node.enable = true; + tahoe.enable = true; + promtail.enable = true; + promtail.extraScrapeConfigs = [ + { + job_name = "tahoe-corruption-advisories"; + static_configs = [ + { + targets = [ "localhost" ]; + labels = { + job = "tahoe-corruption-advisories"; + __path__ = "/storage/corruption-advisories/*"; + }; + } + ]; + } + ]; + }; services.private-storage.borgbackup.enable = true;