Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker compose #1020

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion blackbox.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
modules:
http_2xx:
prober: http
http:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a new modudle for v4 config? we want to keep http_2xx as is.

preferred_ip_protocol: "ip4"
http_post_2xx:
prober: http
http:
Expand Down Expand Up @@ -46,4 +48,4 @@ modules:
prober: icmp
timeout: 5s
icmp:
ttl: 5
ttl: 5
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: "3"


services:
blackbox:
image: quay.io/prometheus/blackbox-exporter:latest
build:
context: .
dockerfile: Dockerfile
container_name: blackbox_exporter
restart: always
tty: true
volumes:
- ./:/config
ports:
- 9115:9115/tcp
command:
- --config.file=/config/blackbox.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to add net_cap_raw permission for running ping checks, see https://github.com/prometheus/blackbox_exporter#permissions

1 change: 1 addition & 0 deletions example.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

modules:
http_2xx_example:
prober: http
Expand Down