prometheus: use pepe for hass data

This commit is contained in:
Ingolf Wagner 2020-04-26 20:17:37 +02:00
parent 576d694bcc
commit 7fca18371f
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -49,10 +49,10 @@
scrape_interval = "5s";
static_configs = [
{
targets = [ "porani.private:19999" ];
targets = [ "pepe.private:19999" ];
labels = {
service = "netdata";
server = "porani";
server = "pepe";
};
}
{
@ -88,11 +88,14 @@
job_name = "home-assistant";
scrape_interval = "60s";
metrics_path = "/api/prometheus";
# you can create this token on your user profile page
# http://pepe.private:8123/profile
bearer_token = lib.fileContents <secrets/prometheus/home-assistant/api_token>;
static_configs = [{
targets = [ "porani.private:8123" ];
targets = [ "pepe.private:8123" ];
labels = {
service = "hass";
server = "porani";
server = "pepe";
city = "essen";
};
}];