From 3bdfefeaca884f73b5af318740daa00ad97ce952 Mon Sep 17 00:00:00 2001 From: Joshua Barratt Date: Wed, 21 Oct 2015 15:09:06 -0700 Subject: [PATCH] Added basic Dockerfile support & documentation --- Dockerfile | 4 ++++ README.md | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 Dockerfile 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: -- 2.25.1