diff --git a/snikket_web/admin.py b/snikket_web/admin.py index 39fea15..4b04126 100644 --- a/snikket_web/admin.py +++ b/snikket_web/admin.py @@ -682,6 +682,11 @@ async def system() -> typing.Union[str, quart.Response]: except KeyError: pass + try: + metrics["prosody_uploads"] = prosody_metrics["uploads"] + except KeyError: + pass + for k in list(metrics.keys()): if metrics[k] is None: # so that defaulting in jinja works diff --git a/snikket_web/templates/admin_system.html b/snikket_web/templates/admin_system.html index c2360fb..00bcd35 100644 --- a/snikket_web/templates/admin_system.html +++ b/snikket_web/templates/admin_system.html @@ -68,6 +68,14 @@ {% trans %}unknown{% endtrans %} {%- endif -%} +