Files
configpolicy/group_vars/remote-blackbox.yml
Dustin C. Hatch 713fd794a3 remote-blackbox: Scrape HTTPS for some sites
Now that the Blackbox exporter does not follow redirects, we need to
explicitly tell it to scrape the HTTPS variant of sites that have it
enabled.  Otherwise, we only get info about the first HTTP-to-HTTPS
redirect response, which is not helpful for watching certificate expiry.
2025-08-08 11:09:28 -05:00

62 lines
1.4 KiB
YAML

blackbox_modules:
http:
http:
headers:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Charset: utf-8
Accept-Language: en-US
method: GET
follow_redirects: false
valid_status_codes:
- 200
- 301
- 302
- 303
- 304
- 307
- 308
prober: http
timeout: 5s
vmagent_remotewrite_url: https://metrics.pyrocufflink.blue/insert/1/prometheus/api/v1/write
vmagent_scrape_configs:
- job_name: cloud-vmagent
static_configs:
- targets:
- localhost:8429
- job_name: blackbox-metrics
static_configs:
- targets:
- localhost:9115
- job_name: websites
scrape_interval: 4m
metrics_path: /probe
params:
module:
- http
static_configs:
- targets:
- https://dustin.hatch.name/
- https://darkchestofwonders.us/
- http://nratonpass.com/
- https://pyrocufflink.net/
- http://ebonfire.com/
- https://chmod777.sh/
- https://nextcloud.pyrocufflink.net/index.php
- https://bitwarden.pyrocufflink.net/
- https://git.pyrocufflink.net/
- https://tabitha.biz/
- https://dustinandtabitha.com/
- https://hatchlearningcenter.org/
- https://invoiceninja.pyrocufflink.net/
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9115