mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(prometheus): scrape home assistant
This commit is contained in:
@@ -247,6 +247,12 @@ in {
|
|||||||
group = "prometheus";
|
group = "prometheus";
|
||||||
mode = "440";
|
mode = "440";
|
||||||
};
|
};
|
||||||
|
home-assistant-token = {
|
||||||
|
file = ../../../secrets/home-assistant-token.age;
|
||||||
|
owner = "prometheus";
|
||||||
|
group = "prometheus";
|
||||||
|
mode = "440";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.prometheus.alertmanagers = [
|
services.prometheus.alertmanagers = [
|
||||||
@@ -315,6 +321,14 @@ in {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "home_assistant";
|
||||||
|
scrape_interval = "60s";
|
||||||
|
metrics_path = "/api/prometheus";
|
||||||
|
scheme = "http";
|
||||||
|
static_configs = [{targets = ["zaatar.r:8123"];}];
|
||||||
|
bearer_token_file = config.age.secrets.home-assistant-token.path;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
job_name = "ful";
|
job_name = "ful";
|
||||||
static_configs = [
|
static_configs = [
|
||||||
|
|||||||
Reference in New Issue
Block a user