From: Ben Kochie Date: Tue, 30 May 2017 08:01:12 +0000 (+0200) Subject: Improve example prometheus.yml config X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7a387ec85b129f3b9897cc58ff9a523ac9d4bd91;p=blackbox_exporter.git 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. --- 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. ```