From: Joshua Barratt Date: Wed, 21 Oct 2015 22:09:06 +0000 (-0700) Subject: Added basic Dockerfile support & documentation X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3bdfefeaca884f73b5af318740daa00ad97ce952;p=blackbox_exporter.git Added basic Dockerfile support & documentation --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9fefe89 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM sdurrheimer/alpine-golang-make-onbuild +MAINTAINER The Prometheus Authors + +EXPOSE 9115 diff --git a/README.md b/README.md index 71b1475..7289a41 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,19 @@ HTTP, HTTPS and TCP. ## Building and running +### Local Build + make ./blackbox_exporter Visiting [http://localhost:9115/probe?target=google.com&module=http_2xx](http://localhost:9115/probe?target=google.com&module=http_2xx) will return metrics for a HTTP probe against google.com. +### Building with Docker + + docker build -t blackbox_exporter . + docker run -d -p 9115:9115 --name blackbox_exporter -v `pwd`:/config blackbox_exporter -config.file=/config/blackbox.yml + ## Configuration A configuration showing all options is below: