Skip to content

Commit 700ecbb

Browse files
committed
squashme: minor fix
1 parent 8b584e5 commit 700ecbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bases/renku_data_services/data_api/prometheus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ async def collect_system_metrics(app: Sanic, name: str) -> None:
4444
async def collect_system_metrics_task(app: Sanic) -> None:
4545
"""Background task to collect metrics."""
4646
while True:
47-
await collect_system_metrics(app, app.m.name)
47+
name = app.name if not hasattr(app.multiplexer) else app.multiplexer.name
48+
await collect_system_metrics(app, name)
4849
await asyncio.sleep(5)
4950

5051

0 commit comments

Comments
 (0)