-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow use of
instance
and job
labels
These labels were previously reserved under all circumstances, but Prometheus server handles them just fine in the metric data it scrapes. The reason we'd reserved them is that Prometheus automatically generates values for them when it scrapes a target, and we didn't want to cause a collision. It turns out Prometheus handles that collision just fine. By default, Prometheus server will prepend `exported_` to them if they're present in the scraped data (i.e. `exported_instance` and `exported_job`). Users can set `honor_labels` in their Prometheus server config if they prefer the labels from the scraped metric data to take precedence over the labels generated by the server. Signed-off-by: Chris Sinjakli <chris@sinjakli.co.uk>
- Loading branch information
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters