mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 01:24:59 -05:00
clarify metric setup to use 'scrape_configs' section of yaml and use an array for target
This commit is contained in:
parent
cea7839911
commit
719aec4064
@ -21,13 +21,12 @@ How to monitor Synapse metrics using Prometheus
|
||||
|
||||
3. Add a prometheus target for synapse.
|
||||
|
||||
It needs to set the ``metrics_path`` to a non-default value::
|
||||
It needs to set the ``metrics_path`` to a non-default value (under ``scrape_configs``)::
|
||||
|
||||
- job_name: "synapse"
|
||||
metrics_path: "/_synapse/metrics"
|
||||
static_configs:
|
||||
- targets:
|
||||
"my.server.here:9092"
|
||||
- targets: ["my.server.here:9092"]
|
||||
|
||||
If your prometheus is older than 1.5.2, you will need to replace
|
||||
``static_configs`` in the above with ``target_groups``.
|
||||
|
Loading…
Reference in New Issue
Block a user