mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-22 10:44:01 +01:00
Merge pull request #2149 from enckse/develop
setting up metrics, just adding/clarifying 2 very minor items
This commit is contained in:
commit
9388eece2b
1 changed files with 2 additions and 3 deletions
|
@ -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 a new issue