diff --git a/docs/usage/configuration/config_documentation.md b/docs/usage/configuration/config_documentation.md index 257ea4a1a2..e7c606f2e8 100644 --- a/docs/usage/configuration/config_documentation.md +++ b/docs/usage/configuration/config_documentation.md @@ -494,7 +494,7 @@ Options for each entry include: * `bind_addresses` (array|null): A list of local addresses to listen on. The default is "all local interfaces". -* `type` (string): The type of listener. Normally `http`, but other valid options are [`manhole`](../../manhole.md) and [`metrics`](../../metrics-howto.md). +* `type` (string): The type of listener. Normally `http`, but other valid options are [`manhole`](../../manhole.md). * `tls` (boolean): Set to true to enable TLS for this listener. Will use the TLS key/cert specified in tls_private_key_path/tls_certificate_path. diff --git a/tests/metrics/test_metrics.py b/tests/metrics/test_metrics.py index 4db878da72..faf4461cdb 100644 --- a/tests/metrics/test_metrics.py +++ b/tests/metrics/test_metrics.py @@ -18,11 +18,8 @@ # [This file includes modifications made by New Vector Limited] # # -from importlib import metadata from typing import Dict, Protocol, Tuple -from unittest.mock import patch -from pkg_resources import parse_version from prometheus_client.core import Sample from synapse.metrics import REGISTRY, InFlightGauge, generate_latest