1
0

README 909 B

12345678910111213141516171819202122232425262728293031323334353637
  1. This directory contains some sample monitoring config for using the
  2. 'Prometheus' monitoring server against synapse.
  3. To use it, first install prometheus by following the instructions at
  4. http://prometheus.io/
  5. ### for Prometheus v1
  6. Add a new job to the main prometheus.conf file:
  7. job: {
  8. name: "synapse"
  9. target_group: {
  10. target: "http://SERVER.LOCATION.HERE:PORT/_synapse/metrics"
  11. }
  12. }
  13. ### for Prometheus v2
  14. Add a new job to the main prometheus.yml file:
  15. - job_name: "synapse"
  16. metrics_path: "/_synapse/metrics"
  17. # when endpoint uses https:
  18. scheme: "https"
  19. static_configs:
  20. - targets: ['SERVER.LOCATION:PORT']
  21. To use `synapse.rules` add
  22. rule_files:
  23. - "/PATH/TO/synapse-v2.rules"
  24. Metrics are disabled by default when running synapse; they must be enabled
  25. with the 'enable-metrics' option, either in the synapse config file or as a
  26. command-line option.