initial commit

master
Nihonium 1 month ago
commit 80bf65fe1c
Signed by: nihonium
GPG Key ID: 0251623741027CFC

@ -0,0 +1,10 @@
modules:
http_2xx:
prober: http
timeout: 10s
valid_http_versions: [ " " ]
valid_http_statuses: [ "2xx", "3xx" ]
method: GET
headers:
User-Agent: "PTSTART INT-4 Blackbox Exporter"
follow_redirects: true

@ -0,0 +1,14 @@
services:
prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
blackbox_exporter:
image: prom/blackbox-exporter
volumes:
- ./blackbox.yml:/etc/blackbox_exporter/blackbox.yml
ports:
- "9115:9115"

@ -0,0 +1,19 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
- ptsecurity.com
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox_exporter:9115
Loading…
Cancel
Save