Add Prometheus timer.

This timer will periodically upload Prometheus information to the push
gateway. By default, every `sensors.pushgateway_period` (10) seconds.
This commit is contained in:
Pim van Pelt
2018-03-04 16:38:10 +01:00
parent 1ff7642bea
commit 0d48de1ba8
2 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,7 @@ config_schema:
- ["sensors", "o", {title: "Sensors settings"}]
- ["sensors.dht_gpio", "s", "13,12,14", {title: "Comma Separated list of GPIO pins to enable DHT22/AM2302 sensors on"}]
- ["sensors.dht_period", "i", 3, {title: "Sample period in seconds for DHT sensors"}]
- ["sensors.pushgateway_period", "i", 10, {title: "Period in seconds for Prometheus Pushgateway POSTs"}]
- ["prometheus.pushgateway", "prometheus.example.net:9091"]