mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-23 17:35:38 +02:00
service/home-assistant: add dummy monitoring
This commit is contained in:
parent
9ffa2e9111
commit
5a0b9f9db7
1 changed files with 19 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue