Skip to content
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
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ RUN addgroup exporter &&\

USER exporter

ENTRYPOINT [ "/bin/mesos-exporter" ]
ENV MODE ${MODE}
ENV URL ${URL}

ENTRYPOINT ./bin/mesos-exporter -master "$URL"
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ When using HTTP or strict mode authentication, the following values are read fro
- `MESOS_EXPORTER_PASSWORD`
- `MESOS_EXPORTER_PRIVATE_KEY`

## Docker
```sh
Usage of docker:

For Master
docker run --net="host" -e MODE=-master -e URL=http://localhost:5050 -p 9015:9015 mesos_exporter:latest

For Slave
docker run --net="host" -e MODE=-slave -e URL=http://localhost:5051 -p 9015:9015 mesos_exporter:latest
```

## Prometheus Configuration

Expand Down