prometheus: increase retentionTime, increase hass scrape interval

This commit is contained in:
Motiejus Jakštys 2024-09-13 09:09:02 +03:00
parent ebdddaad5c
commit e13aefa161
1 changed files with 2 additions and 1 deletions

View File

@ -319,7 +319,7 @@ in
prometheus = { prometheus = {
enable = true; enable = true;
port = myData.ports.prometheus; port = myData.ports.prometheus;
retentionTime = "1y"; retentionTime = "2y";
globalConfig = { globalConfig = {
scrape_interval = "10s"; scrape_interval = "10s";
@ -341,6 +341,7 @@ in
} }
{ {
job_name = "hass_p7_50"; job_name = "hass_p7_50";
scrape_interval = "1m";
metrics_path = "/api/prometheus"; metrics_path = "/api/prometheus";
static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.hass}" ]; } ]; static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.hass}" ]; } ];
} }