Improve example prometheus.yml config
authorBen Kochie <superq@gmail.com>
Tue, 30 May 2017 08:01:12 +0000 (10:01 +0200)
committerBrian Brazil <brian.brazil@robustperception.io>
Tue, 30 May 2017 10:49:38 +0000 (11:49 +0100)
To reduce confusion about how to use http probes, simplify the `http_2xx` probe example.
* Make the example use full URLs for targets.
* Remove relabel config params that are defaults.

README.md

index a4ed8d91aac60c264dc9bbedd7b4bf08188e1734..5b23dad71909254838d72c49f7f202c4d87916a4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -121,19 +121,15 @@ scrape_configs:
       module: [http_2xx]  # Look for a HTTP 200 response.
     static_configs:
       - targets:
-        - prometheus.io   # Target to probe
+        - http://prometheus.io    # Target to probe with http.
+        - https://prometheus.io   # Target to probe with https.
+        - http://example.com:8080 # Target to probe with http on port 8080.
     relabel_configs:
       - source_labels: [__address__]
-        regex: (.*)(:80)?
         target_label: __param_target
-        replacement: ${1}
       - source_labels: [__param_target]
-        regex: (.*)
         target_label: instance
-        replacement: ${1}
-      - source_labels: []
-        regex: .*
-        target_label: __address__
+      - target_label: __address__
         replacement: 127.0.0.1:9115  # Blackbox exporter.
 ```