From 112e1349e69667d97810d8184b9ea5c9c1435bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robbert=20M=C3=BCller?= Date: Mon, 27 Jul 2020 19:53:20 +0200 Subject: [PATCH] :books: Added more information and example to documentaion --- prometheus/DOCS.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/prometheus/DOCS.md b/prometheus/DOCS.md index b229cf2..ae792b6 100644 --- a/prometheus/DOCS.md +++ b/prometheus/DOCS.md @@ -37,12 +37,23 @@ static_configs: **Note**: _This is just an example, don't copy and paste it! Create your own!_ The job names `home-assistant` and `prometheus` are already defined by default. +For the `homeassistant` target you must add add the following to the Home Assistant configuration: + +```yaml +prometheus: +``` Rules can be created under `/share/prometheus/rules/` The addon will reload the configuration if a valid configuration is available. If not it will log errors in the addon log +## Grafana + +Grafana can use prometheus as a datasource, to configure this go to grafana and add a datasource. +The hostname to connect to is depending on the release you installed. +For stable this is 'http://a0d7b954-prometheus:9090' + ## Known issues and limitations - Job name must be unique, but this has to be enforced by the user.