From 5a0b9f9db79861fcb12a1f1a4d78a8c6da9d1832 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 4 Jun 2023 21:32:29 +0200 Subject: [PATCH] service/home-assistant: add dummy monitoring --- modules/services/home-assistant/default.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/services/home-assistant/default.nix b/modules/services/home-assistant/default.nix index 830f451..017ab38 100644 --- a/modules/services/home-assistant/default.nix +++ b/modules/services/home-assistant/default.nix @@ -104,9 +104,27 @@ in ] ++ cfg.extraComponents; }; + # services.prometheus.scrapeConfigs = [ + # { + # job_name = "home-assistant"; + # metrics_path = "/api/prometheus"; + + # authorization.credentials: "your.longlived.token"; + + # static_configs = [ + # { + # targets = [ "127.0.0.1:${toString cfg.port}" ]; + # labels = { + # instance = config.networking.hostName; + # }; + # } + # ]; + # } + # ]; + my.services.nginx.virtualHosts = [ { - subdomain = "monitoring"; + subdomain = "automation"; inherit (cfg) port; } ];