include prometheus metrics, refs #200

This commit is contained in:
Jakob Ketterl
2021-02-01 18:43:14 +01:00
parent 998092f377
commit 5e1c4391c6
3 changed files with 28 additions and 3 deletions

View File

@@ -52,7 +52,10 @@ class Metrics(object):
return None
return self.metrics[name]
def getMetrics(self):
def getFlatMetrics(self):
return self.metrics
def getHierarchicalMetrics(self):
result = {}
for (key, metric) in self.metrics.items():