Default port is now added after relabelling
authorBrian Brazil <brian-brazil@users.noreply.github.com>
Mon, 9 Nov 2015 11:45:39 +0000 (11:45 +0000)
committerBrian Brazil <brian-brazil@users.noreply.github.com>
Mon, 9 Nov 2015 11:45:39 +0000 (11:45 +0000)
Update in forward compatible way for https://github.com/prometheus/prometheus/pull/1204

README.md

index 7289a418ca298a24092e0eaef297b1fab385fe36..a2eb9f0c8c51f3859056829fc823d222c27a4585 100644 (file)
--- a/README.md
+++ b/README.md
@@ -51,7 +51,7 @@ done with relabelling.
 
 Example config:
 ```
-scrape_config:
+scrape_configs:
   - job_name: 'blackbox'
     metrics_path: /probe
     params:
@@ -61,7 +61,7 @@ scrape_config:
         - mywebsite.com   # Target to probe
     relabel_configs:
       - source_labels: [__address__]
-        regex: (.*):80
+        regex: (.*)(:80)?
         target_label: __param_target
         replacement: ${1}
       - source_labels: [__param_target]