remote-blackbox: Add group

The _remote-blackbox_ group defines a system that runs
_blackbox-exporter_ and _vmagent_ in a remote (cloud) location.  This
system will monitor our public web sites.  This will give a better idea
of their availability from the perspective of a user on the Internet,
which can be by factors that are necessarily visible from within the
network.
dynamic-inventory
Dustin 2025-01-26 07:00:02 -06:00
parent 3e8ac36f88
commit ad0bd7d4a5
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,51 @@
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
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/
- http://pyrocufflink.net/
- http://ebonfire.com/
- http://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/
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9115

6
hosts
View File

@ -8,6 +8,9 @@ file0.pyrocufflink.blue
[bitwarden_rs] [bitwarden_rs]
bw0.pyrocufflink.blue bw0.pyrocufflink.blue
[blackbox-exporter:children]
remote-blackbox
[btop] [btop]
chromie.pyrocufflink.blue chromie.pyrocufflink.blue
@ -211,6 +214,9 @@ smtp1.pyrocufflink.blue
vmhost0.pyrocufflink.blue vmhost0.pyrocufflink.blue
vmhost1.pyrocufflink.blue vmhost1.pyrocufflink.blue
[vmagent:children]
remote-blackbox
[wheelhost] [wheelhost]
file0.pyrocufflink.blue file0.pyrocufflink.blue