Skip to content

Metrics relabeling doesn't respect __tmp prefix #9416

Answered by roidelapluie
herewasmike asked this question in Q&A
Discussion options

You must be logged in to vote

The documentation here says:

https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
Labels starting with __ will be removed from the label set after target relabeling is completed.

We could make it clearer that it only affect target relabeling, e.g. relabel_configs.

It does not affect:

  • metric_relabel_configs
  • write_relabel_configs
  • alert_relabel_configs

you would need to remove it with another action

- regex: __tmp_.*
  action: labeldrop

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@herewasmike
Comment options

Answer selected by herewasmike
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #9415 on September 29, 2021 22:38.