Make Prometheus snippet less confusing on the metrics collection doc (#4288)
Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
This commit is contained in:
parent
ee90c06e38
commit
cd3f30014a
|
@ -48,7 +48,10 @@ How to monitor Synapse metrics using Prometheus
|
||||||
- job_name: "synapse"
|
- job_name: "synapse"
|
||||||
metrics_path: "/_synapse/metrics"
|
metrics_path: "/_synapse/metrics"
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["my.server.here:9092"]
|
- targets: ["my.server.here:port"]
|
||||||
|
|
||||||
|
where ``my.server.here`` is the IP address of Synapse, and ``port`` is the listener port
|
||||||
|
configured with the ``metrics`` resource.
|
||||||
|
|
||||||
If your prometheus is older than 1.5.2, you will need to replace
|
If your prometheus is older than 1.5.2, you will need to replace
|
||||||
``static_configs`` in the above with ``target_groups``.
|
``static_configs`` in the above with ``target_groups``.
|
||||||
|
|
Loading…
Reference in New Issue