Add Min and Event Count Metrics To Prometheus (#10530)

* Added min and Events sensor types to prometheus

* Updated prometheus client and fixed invalid swith state

* Added metric to count number of times an automation is triggered

* Removed assumption that may not apply to everybody

* Fixed tests

* Updated requirements_test_all

* Fixed unit tests
This commit is contained in:
Brent Hughes authored and Martin Hjelmare committed 2017-12-03 23:39:54 +01:00
1 parent 3a246df544
commit 879e32f670
4 files changed
+29 -6

No files matched your search

+3 -1
View File
@@ -30,4 +30,6 @@ def test_view(prometheus_client): # pylint: disable=redefined-outer-name
assert len(body) > 3 # At least two comment lines and a metric
for line in body:
if line:
assert line.startswith('# ') or line.startswith('process_')
assert line.startswith('# ') \
or line.startswith('process_') \
or line.startswith('python_info')