summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-03-29 18:54:38 +0100
committerErik Johnston <erik@matrix.org>2021-03-29 18:54:38 +0100
commite73881a439b471a0588357fddf706ca08355fcf8 (patch)
tree942174edb6693b68526a38e51810e5ea9110a833
parentFixup (diff)
downloadsynapse-e73881a439b471a0588357fddf706ca08355fcf8.tar.xz
Add metadata type
-rw-r--r--synapse/metrics/__init__.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py
index 1e4f31d1f7..0d1d9cfcb2 100644
--- a/synapse/metrics/__init__.py
+++ b/synapse/metrics/__init__.py
@@ -649,7 +649,14 @@ try:
                 "",
                 labels=["type"],
             )
-            for t in ("allocated", "active", "resident", "mapped", "retained"):
+            for t in (
+                "allocated",
+                "active",
+                "resident",
+                "mapped",
+                "retained",
+                "metadata",
+            ):
                 g.add_metric([t], value=get_val(f"stats.{t}"))
 
             yield g