mirror of
https://github.com/hassio-addons/addon-prometheus.git
synced 2025-05-04 11:11:24 +00:00
📚 Added more information and example to documentaion
This commit is contained in:
parent
0d8bd26754
commit
112e1349e6
1 changed files with 11 additions and 0 deletions
|
@ -37,12 +37,23 @@ static_configs:
|
||||||
**Note**: _This is just an example, don't copy and paste it! Create your own!_
|
**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.
|
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/`
|
Rules can be created under `/share/prometheus/rules/`
|
||||||
|
|
||||||
The addon will reload the configuration if a valid configuration is available.
|
The addon will reload the configuration if a valid configuration is available.
|
||||||
If not it will log errors in the addon log
|
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
|
## Known issues and limitations
|
||||||
|
|
||||||
- Job name must be unique, but this has to be enforced by the user.
|
- Job name must be unique, but this has to be enforced by the user.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue