Skip to content

Commit

Permalink
documented docker labels meaning (#68) (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Murav'jov authored Jun 18, 2021
1 parent 4827775 commit af15371
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,26 @@ To scrape the containers add following docker labels to them:
* `PROMETHEUS_EXPORTER_PATH` specify alternative scrape path here (optional)
* `PROMETHEUS_EXPORTER_SCHEME` specify an alternative scheme here, default is http (optional)

By docker labels one means `dockerLabels` map in ECS task definition JSONs like that:
```json
{
...
"containerDefinitions": [
{
...
"dockerLabels": {
"PROMETHEUS_EXPORTER_PORT": "5000"
}
}
]
...
}
```

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
file the minute it is written). After reloading your Prometheus
master configuration, this program will begin informing via
the discovery file of new targets that Prometheus must scrape.

0 comments on commit af15371

Please sign in to comment.