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:
1 parent
3a246df544
commit
879e32f670
4 files changed
+29
-6
No files matched your search
@@ -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')
|
||||
Reference in new issue
Block a user