mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 20:43:02 +00:00
Upgrade Prometheus client
This commit is contained in:
@@ -22,8 +22,12 @@ class Generator:
|
||||
for name in dir(jupyterhub.metrics):
|
||||
obj = getattr(jupyterhub.metrics, name)
|
||||
if obj.__class__.__module__.startswith('prometheus_client.'):
|
||||
for metric in obj.describe():
|
||||
table_rows.append([metric.type, metric.name, metric.documentation])
|
||||
description = obj.describe()[0]
|
||||
table_rows.append([
|
||||
description.type,
|
||||
description.name,
|
||||
description.documentation,
|
||||
])
|
||||
return table_rows
|
||||
|
||||
def prometheus_metrics(self):
|
||||
|
Reference in New Issue
Block a user