prometheus: import from weather exporter

This commit is contained in:
Motiejus Jakštys 2024-09-13 16:32:21 +03:00
parent 3b8a40fe95
commit 26d06a2ebf
1 changed files with 5 additions and 0 deletions

View File

@ -361,6 +361,11 @@ in
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}" ]; } ];
} }
{
job_name = "weather";
scrape_interval = "1m";
static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.exporters.weather}" ]; } ];
}
{ {
job_name = "vno1-vinc.vincentas.jakst"; job_name = "vno1-vinc.vincentas.jakst";
static_configs = [ { targets = [ "${myData.hosts."vno1-vinc.vincentas.jakst".jakstIP}:9100" ]; } ]; static_configs = [ { targets = [ "${myData.hosts."vno1-vinc.vincentas.jakst".jakstIP}:9100" ]; } ];