Skip to content
Snippets Groups Projects
Commit 58115741 authored by Xavier Hurst's avatar Xavier Hurst
Browse files

Added Dockerfile, updated README

parent c1cfe73d
No related branches found
No related tags found
No related merge requests found
FROM alpine:3.5
RUN apk add --no-cache ca-certificates
ADD apache_exporter /
EXPOSE 9117
ENTRYPOINT ["/apache_exporter"]
\ No newline at end of file
......@@ -21,3 +21,20 @@ Help on flags:
Tested on Apache 2.2 and Apache 2.4.
# Using Docker
## Build
Run the following commands from the project root directory.
```
env GOOS=linux GOARCH=amd64 go build .
docker build -t apache_exporter .
```
## Run
```
docker run -d -p 9117:9117 apache_exporter \
-scrape_uri "https://your.server.com/server-status/?auto"
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment