Skip to content

Commit

Permalink
Merge pull request #17 from bsingr/patch-1
Browse files Browse the repository at this point in the history
Document important docker labels in readme
  • Loading branch information
chicofranchico authored Aug 10, 2018
2 parents 4add421 + 9eeb79d commit 5eadad6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ scrape_configs:
refresh_interval: 10m
```

To scrape the containers add following docker labels to them:

* `PROMETHEUS_EXPORTER_PORT` specify the container port where prometheus scrapes (mandatory)
* `PROMETHEUS_EXPORTER_SERVER_NAME` specify the hostname here, per default ip is used (optional)
* `PROMETHEUS_EXPORTER_PATH` specify alternative scrape path here (optional)

That's it. You should begin seeing the program scraping the
AWS APIs and writing the discovery file (by default it does
that every minute, and by default Prometheus will reload the
Expand Down

0 comments on commit 5eadad6

Please sign in to comment.