From 7a387ec85b129f3b9897cc58ff9a523ac9d4bd91 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Tue, 30 May 2017 10:01:12 +0200 Subject: [PATCH] Improve example prometheus.yml config 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 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a4ed8d9..5b23dad 100644 --- 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. ``` -- 2.25.1