diff --git a/services/self_host/monitor.nix b/services/self_host/monitor.nix index b308b0d..682b103 100644 --- a/services/self_host/monitor.nix +++ b/services/self_host/monitor.nix @@ -1,8 +1,8 @@ { -config, -pkgs, -lib, -... + config, + pkgs, + lib, + ... }: let @@ -15,7 +15,7 @@ let "grafana" ]; in - { +{ config = lib.mkIf cfg { services = { grafana = { @@ -101,16 +101,16 @@ in blackbox = { enable = true; configFile = pkgs.writeText "blackbox-exporter.yml" '' - modules: - http_2xx: - prober: http - timeout: 5s - http: - valid_http_versions: ["HTTP/1.1", "HTTP/2.0"] - valid_status_codes: [] - method: GET - no_follow_redirects: false - fail_if_not_ssl: false + modules: + http_2xx: + prober: http + timeout: 5s + http: + valid_http_versions: ["HTTP/1.1", "HTTP/2.0"] + valid_status_codes: [] + method: GET + no_follow_redirects: false + fail_if_not_ssl: false ''; }; node.enable = true; @@ -212,16 +212,18 @@ in }; }; schema_config = { - configs = [{ - from = "2024-01-01"; - store = "tsdb"; - object_store = "filesystem"; - schema = "v13"; - index = { - prefix = "index_"; - period = "24h"; - }; - }]; + configs = [ + { + from = "2024-01-01"; + store = "tsdb"; + object_store = "filesystem"; + schema = "v13"; + index = { + prefix = "index_"; + period = "24h"; + }; + } + ]; }; }; }; @@ -277,7 +279,6 @@ in }; }; - systemd.services = { alloy.serviceConfig.SupplementaryGroups = [ "systemd-journal" ]; process_exporter = { @@ -343,7 +344,5 @@ in ''; }; - - }; }