
Le Van Cuong
Fullstack Developer

Blackbox exporter
The blackbox exporter allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP, ICMP and gRPC.
Using the docker image
docker run --rm -d -p 9115:9115 --name blackbox_exporter -v `pwd`:/config prom/blackbox-exporter:master --config.file=/config/blackbox.yml |
---|
Config blackbox exporter:
modules: http_2xx: prober: http http: valid_status_codes: [] method: GET preferred_ip_protocol: "ip4" tls_config: insecure_skip_verify: true |
---|
Prometheus server:
Config Prometheus server to scrape Blackbox Exporter:
- job_name: 'blackbox' static_configs: # add targets to probe |
---|
Restart prometheus
systemctl restart prometheus