diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-02-26 14:23:40 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-02-26 14:23:40 +0000 |
commit | 802884d4ee06ca8e42f46f64e6da7c188d43dc69 (patch) | |
tree | 6767e6e142d75e5500092a829d488583fcedef51 /contrib/prometheus/README.md | |
parent | Add changelog (diff) | |
parent | Merge pull request #4745 from matrix-org/revert-4736-anoa/public_rooms_federate (diff) | |
download | synapse-802884d4ee06ca8e42f46f64e6da7c188d43dc69.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/public_rooms_federate_develop
Diffstat (limited to 'contrib/prometheus/README.md')
-rw-r--r-- | contrib/prometheus/README.md | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/contrib/prometheus/README.md b/contrib/prometheus/README.md new file mode 100644 index 0000000000..e646cb7ea7 --- /dev/null +++ b/contrib/prometheus/README.md @@ -0,0 +1,44 @@ +This directory contains some sample monitoring config for using the +'Prometheus' monitoring server against synapse. + +To use it, first install prometheus by following the instructions at + + http://prometheus.io/ + +### for Prometheus v1 + +Add a new job to the main prometheus.conf file: + +```yaml + job: { + name: "synapse" + + target_group: { + target: "http://SERVER.LOCATION.HERE:PORT/_synapse/metrics" + } + } +``` + +### for Prometheus v2 +Add a new job to the main prometheus.yml file: + +```yaml + - job_name: "synapse" + metrics_path: "/_synapse/metrics" + # when endpoint uses https: + scheme: "https" + + static_configs: + - targets: ['SERVER.LOCATION:PORT'] +``` + +To use `synapse.rules` add + +```yaml + rule_files: + - "/PATH/TO/synapse-v2.rules" +``` + +Metrics are disabled by default when running synapse; they must be enabled +with the 'enable-metrics' option, either in the synapse config file or as a +command-line option. |