summary refs log tree commit diff
path: root/contrib/prometheus/README
diff options
context:
space:
mode:
authorKrombel <krombel@krombel.de>2017-11-07 13:35:35 +0100
committerKrombel <krombel@krombel.de>2017-11-07 13:35:35 +0100
commit44ad6dd4bf7dad7ebfe554eabf78e56ba7a964c7 (patch)
tree784c7114707a472b4910e9e11c54ef3c533da1cb /contrib/prometheus/README
parentMerge pull request #2647 from matrix-org/luke/get-group-users-is-privileged (diff)
downloadsynapse-44ad6dd4bf7dad7ebfe554eabf78e56ba7a964c7.tar.xz
update prometheus-config to new format
Diffstat (limited to 'contrib/prometheus/README')
-rw-r--r--contrib/prometheus/README19
1 files changed, 12 insertions, 7 deletions
diff --git a/contrib/prometheus/README b/contrib/prometheus/README
index eb91db2de2..d2ddb3f6e4 100644
--- a/contrib/prometheus/README
+++ b/contrib/prometheus/README
@@ -5,15 +5,20 @@ 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:
+Then add a new job to the main prometheus.yml file:
 
-  job: {
-    name: "synapse"
+  - job_name: "synapse"
+    metrics_path: "/_synapse/metrics"
+    # when endpoint uses https:
+    scheme: "https"
 
-    target_group: {
-      target: "http://SERVER.LOCATION.HERE:PORT/_synapse/metrics"
-    }
-  }
+    static_configs:
+    - targets: ['SERVER.LOCATION:PORT']
+
+To use `synapse.rules` add
+
+    rule_files:
+      - "/PATH/TO/synapse.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