From 1d4dcc3f96e9eefa13d986e4965931dcecbb8fb7 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Mon, 9 Nov 2015 11:45:39 +0000 Subject: [PATCH] Default port is now added after relabelling Update in forward compatible way for https://github.com/prometheus/prometheus/pull/1204 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7289a41..a2eb9f0 100644 --- 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] -- 2.25.1