Skip to content
Snippets Groups Projects
Commit 18c1dc14 authored by neezgee's avatar neezgee Committed by GitHub
Browse files

Merge pull request #20 from tw3n/dockerfile

Added Dockerfile, updated README
parents c1cfe73d 58115741
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: ...@@ -21,3 +21,20 @@ Help on flags:
Tested on Apache 2.2 and Apache 2.4. 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