diff --git a/system/hosts/mcp/containers/grafana.nix b/system/hosts/mcp/containers/grafana.nix index 23dc186..3e8dbe8 100644 --- a/system/hosts/mcp/containers/grafana.nix +++ b/system/hosts/mcp/containers/grafana.nix @@ -1,7 +1,8 @@ { config, ... }: let lib = import ./lib.nix config; -in { +in +{ imports = [ ./shared-postgres.nix ]; @@ -41,27 +42,6 @@ in { name = "Loki"; description = "Log Database"; }; - environment = {}; - }; - - services.promtail = { - enable = true; - configuration = { - server.http_listen_port = 9080; - clients = [ - { url = "https://loki.blazestar.net/loki/api/v1/push"; } - ]; - scrape_configs = [{ - job_name = "journal"; - journal = { - max_age = "12h"; - labels = { job = "systemd-journal"; }; - }; - relabel_configs = [{ - source_labels = ["__journal__systemd_unit"]; - target_label = "unit"; - }]; - }]; - }; + environment = { }; }; }