diff options
author | Erik Johnston <erik@matrix.org> | 2021-03-29 18:54:38 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-03-29 18:54:38 +0100 |
commit | e73881a439b471a0588357fddf706ca08355fcf8 (patch) | |
tree | 942174edb6693b68526a38e51810e5ea9110a833 | |
parent | Fixup (diff) | |
download | synapse-e73881a439b471a0588357fddf706ca08355fcf8.tar.xz |
Add metadata type
-rw-r--r-- | synapse/metrics/__init__.py | 9 |
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 |