diff --git a/configs/workhorse/prometheus.nix b/configs/workhorse/prometheus.nix index 5d3a685..c1640ae 100644 --- a/configs/workhorse/prometheus.nix +++ b/configs/workhorse/prometheus.nix @@ -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 ; static_configs = [{ - targets = [ "porani.private:8123" ]; + targets = [ "pepe.private:8123" ]; labels = { service = "hass"; - server = "porani"; + server = "pepe"; city = "essen"; }; }];