blackbox_exporter
Blackbox prober exporter
File Explorer
- approve-workflows.yml
- ci.yml
- container_description.yml
- golangci-lint.yml
- govulncheck.yml
- stale.yml
- dependabot.yml
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- blackbox-bad.yml
- blackbox-bad2.yml
- blackbox-good.yml
- invalid-dns-class.yml
- invalid-dns-module.yml
- invalid-dns-type.yml
- invalid-http-body-config.yml
- invalid-http-body-match-regexp.yml
- invalid-http-body-not-match-regexp.yml
- invalid-http-compression-mismatch-special-case.yml
- invalid-http-compression-mismatch.yml
- invalid-http-header-match-regexp.yml
- invalid-http-header-match.yml
- invalid-http-http3-http2-enabled.yml
- invalid-http-http3-http2-version.yml
- invalid-http-http3-http2.yml
- invalid-http-request-compression-reject-all-encodings.yml
- invalid-icmp-ttl-overflow.yml
- invalid-icmp-ttl.yml
- invalid-no-versions-http3-enabled.yml
- invalid-prober.yml
- invalid-tcp-query-response-regexp.yml
- invalid-unix-query-response-regexp.yml
- invalid-websocket-query-response-regexp.yml
- config.go
- config_test.go
- reload.go
- reload_test.go
- dns.go
- dns_test.go
- grpc.go
- grpc_test.go
- handler.go
- handler_test.go
- history.go
- history_test.go
- http.go
- http_test.go
- icmp.go
- prober.go
- query_response.go
- tcp.go
- tcp_test.go
- tls.go
- unix.go
- unix_test.go
- utils.go
- utils_test.go
- websocket.go
- websocket_test.go
- .dockerignore
- .gitignore
- .golangci.yml
- .promu.yml
- .yamllint
- blackbox.yml
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONFIGURATION.md
- Dockerfile
- Dockerfile.distroless
- example.yml
- go.mod
- go.sum
- LICENSE
- main.go
- main_test.go
- MAINTAINERS.md
- Makefile
- Makefile.common
- NOTICE
- README.md
- SECURITY.md
- VERSION
# Installation Guide
goSetup Steps
docker run --rm -p 9115/tcp --name blackbox_exporter -v $(pwd):/config quay.io/prometheus/blackbox-exporter:latest --config.file=/config/blackbox.yml
Run Blackbox Exporter using the Docker image.
./blackbox_exporter --config.file=blackbox.yml
Run the compiled binary directly.
Key Commands
docker run --rm -p 9115/tcp --name blackbox_exporter -v $(pwd):/config quay.io/prometheus/blackbox-exporter:latest --config.file=/config/blackbox.yml
Run blackbox_exporter inside a Docker container.
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
docker build
View Details ▼
docker build
Build an image from a Dockerfile.
docker build .
Build a Docker image using the Dockerfile in the current directory:
docker build {{github.com/creack/docker-firefox}}
Build a Docker image from a Dockerfile at a specified URL:
docker build {{[-t|--tag]}} {{name:tag}} .
Build a Docker image and tag it:
docker run
View Details ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
http
View Details ▼
http
HTTPie: an HTTP client designed for testing, debugging, and generally interacting with APIs and HTTP servers.
See also: `xh`.
http {{https://example.com}}
Make a simple GET request (shows response headers and content):
http {{[-p|--print]}} {{H|B|h|b|m|Hh|Hhb|...}} {{https://example.com}}
Print specific parts of the content (`H`: request headers, `B`: request body, `h`: response headers, `b`: response body, `m`: response metadata):
http {{GET|POST|HEAD|PUT|PATCH|DELETE|...}} --proxy {{http|https}}:{{http://localhost:8080|socks5://localhost:9050|...}} {{https://example.com}}
Specify the HTTP method when sending a request and use a proxy to intercept the request:
timeout
View Details ▼
timeout
Run a command with a time limit.
timeout 3s sleep 10
Run `sleep 10` and terminate it after 3 seconds:
timeout {{[-s|--signal]}} {{INT|HUP|KILL|...}} {{5s}} {{sleep 10}}
Send a signal to the command after the time limit expires (`TERM` by default, `kill -l` to list all signals):
timeout {{[-v|--verbose]}} {{0.5s|1m|1h|1d|...}} {{command}}
Send verbose output to `stderr` showing signal sent upon timeout:
