From ce9ea595de831930c245ea9e671b5555e73afc0e Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@private.storage> Date: Wed, 24 Aug 2022 18:09:41 +0000 Subject: [PATCH] coding style --- morph/lib/storage.nix | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/morph/lib/storage.nix b/morph/lib/storage.nix index 60e80b8b..123742a2 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; -- GitLab