service/home-assistant: add dummy monitoring

This commit is contained in:
Felix Buehler 2023-06-04 21:32:29 +02:00
parent 9ffa2e9111
commit 5a0b9f9db7

View file

@ -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;
}
];