
OS X: No additional privileges are needed.Alternatively the capability can be set by executing setcap cap_net_raw+ep blackbox_exporter._group_range = 0 2147483647 to allow any user the ability Your distribution may configure _group_range by default in.Linux: either a user with a group within _group_range, theĬAP_NET_RAW capability or the root user is required.Windows: Administrator privileges are required.

The ICMP probe requires elevated privileges to function: source_labels: target_label: vhost # and store it in 'vhost' label Permissions source_labels: target_label: _param_hostname # Make domain name become 'Host' header for probe requests target_label: _address_ replacement: 127.0.0.1:9115 # The blackbox exporter's real hostname:port. source_labels: target_label: _param_target replacement: # Make probe URL be like prometheus.io type: A port: 443 relabel_configs: job_name: blackbox_all metrics_path: /probe params:

The blackbox exporter needs to be passed the target as a parameter, this can be To read the guide Understanding and using the multi-target exporter pattern Prometheus Configurationīlackbox exporter implements the multi-target exporter pattern, so we advice If neither is specified, it defaults to 120 seconds. This can be further limited by the timeout in the Blackbox exporter config file. The timeout of each probe is automatically determined from the scrape_timeout in the Prometheus config, slightly reduced to allow for network delays. HTTP, HTTPS (via the http prober), DNS, TCP socket, ICMP and gRPC (see permissions section) are currently supported.Īdditional modules can be defined to meet your needs. To specify which configuration file to load, use the -config.file flag.Īdditionally, an example configuration is also available. To view all available command-line flags, run. If the new configuration is not well-formed, the changes will not be applied.Ī configuration reload is triggered by sending a SIGHUP to the Blackbox exporter process or by sending a HTTP POST request to the /-/reload endpoint. You should see the metrics scraped from the Blackbox Exporter under the "blackbox" job.Blackbox exporter is configured via a configuration file and command-line flags (such as what configuration file to load, what port to listen on, and the logging format and level).īlackbox exporter can reload its configuration file at runtime.

PROMETHEUS BLACKBOX EXPORTER EXAMPLE DOWNLOAD
Download the Blackbox Exporter: Visit the official Prometheus GitHub repository ( ) and download the latest version of the Blackbox Exporter binary for your operating system.Lets start with blackbox exporter installation and configuration I am assuming that you have already setup Prometheus and Grafana
