Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commit

Permalink
Update README.md with metadata label information
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusv committed Apr 9, 2017
1 parent df144ce commit db11d39
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ services:
prometheus.port: 8079
```

## Metadata labels

The discovery tool attaches a set of metadata labels to each target that are available during the [relabeling phase](https://prometheus.io/docs/operating/configuration/#<relabel_config>) of the service discovery in Prometheus:

* `__meta_docker_service_label_<labelname>`: The value of this service label.
* `__meta_docker_task_label_<labelname>`: The value of this task label.
* `__meta_docker_task_name`: The name of the Docker task.

Labels starting with `__` are removed after the relabeling phase, so that these labels will not show up on time series directly.

## Excluding services

To exclude a specific service from being included in the scrape targets, add a label of format `prometheus.ignore: "true"`.
Expand Down

0 comments on commit db11d39

Please sign in to comment.