blackbox_exporter is a prometheus exporter that allows
blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP
and ICMP.
see bugzilla: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226250
Differential D14537
NEW PORT: sysutils/blackbox_exporter fabian.freyer_physik.tu-berlin.de on Feb 27 2018, 6:35 PM. Authored by Tags None Referenced Files
Subscribers
Details blackbox_exporter is a prometheus exporter that allows see bugzilla: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226250 make install sysrc blackbox_exporter_enable="YES" cat > /usr/local/etc/blackbox_exporter.yml << EOF modules: http_2xx: prober: http timeout: 5s http: valid_http_versions: ["HTTP/1.1", "HTTP/2"] valid_status_codes: [] # Defaults to 2xx method: GET headers: Host: vhost.example.com Accept-Language: en-US no_follow_redirects: false fail_if_ssl: false fail_if_not_ssl: false fail_if_matches_regexp: - "Could not connect to database" fail_if_not_matches_regexp: - "Download the latest version here" tls_config: insecure_skip_verify: false preferred_ip_protocol: "ip4" # defaults to "ip6" EOF service blackbox_exporter start curl http://localhost:9115/probe\?target=www.prometheus.io\&module=http_2xx
Diff Detail
Event Timeline
Comment Actions As a side note, you should run the rc file through devel/rclint to make sure it conforms to our standards. Optionnally, you could also run it through devel/hs-ShellCheck to make sure there are no obvious bugs :-)
|