summary refs log tree commit diff
path: root/contrib/prometheus/README
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-08-16 15:31:44 +0100
committerRichard van der Hoff <richard@matrix.org>2017-08-16 15:31:44 +0100
commit012875258c7c8ad7db4dcb8825684f2e8034e650 (patch)
tree027b888c066a285d10ce18dfa05258a704a41a57 /contrib/prometheus/README
parentMerge branch 'hotfixes-v0.22.1' of github.com:matrix-org/synapse (diff)
downloadsynapse-012875258c7c8ad7db4dcb8825684f2e8034e650.tar.xz
Add prometheus config
... from https://github.com/matrix-org/synapse-prometheus-config.
Diffstat (limited to 'contrib/prometheus/README')
-rw-r--r--contrib/prometheus/README20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/prometheus/README b/contrib/prometheus/README
new file mode 100644

index 0000000000..eb91db2de2 --- /dev/null +++ b/contrib/prometheus/README
@@ -0,0 +1,20 @@ +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/ + +Then add a new job to the main prometheus.conf file: + + job: { + name: "synapse" + + target_group: { + target: "http://SERVER.LOCATION.HERE:PORT/_synapse/metrics" + } + } + +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.