summary refs log tree commit diff
path: root/contrib/prometheus/README
diff options
context:
space:
mode:
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