mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Metrics: Replace redundant metrics by aliases
This commit is contained in:
@@ -38,8 +38,9 @@ def serve_metrics(request):
|
||||
m = metrics.metric_values()
|
||||
|
||||
output = []
|
||||
for metric, value in m.items():
|
||||
output.append("{} {}".format(metric, str(value)))
|
||||
for metric, sub in m.items():
|
||||
for label, value in sub.items():
|
||||
output.append("{}{} {}".format(metric, label, str(value)))
|
||||
|
||||
content = "\n".join(output) + "\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user