Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[RFC] metric relabelling support for dropping labels #2233
Comments
brian-brazil
added
the
kind/enhancement
label
Nov 29, 2016
This comment has been minimized.
This comment has been minimized.
|
Just for anecdotal evidence: We have a very similar need (and solved it, as so often, on the level of config management, i.e. a Ruby loop in a Chef recipe creates all the individual label replacement rules). |
This comment has been minimized.
This comment has been minimized.
|
One more thought. |
This comment has been minimized.
This comment has been minimized.
|
Attempted in #2279 |
This comment has been minimized.
This comment has been minimized.
|
Closed by #2279 |
tcolgate
closed this
Dec 14, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
tcolgate commentedNov 29, 2016
I'm working with cadvisor, and importing some environment variables in from containers (to get mesos task ID and marathon app id, but it could be anything). These result in rather unpleasant labels (container_env_mesos_task_id).
Later I need to make this against a mesos_task_id label coming from elsewhere, so have elected to rename this label in metric relabeling.
Ideally there would be an easy way to bulk remove all container_env_ labels. Currently the only option is to explicitly replace the labels by name.
Possible solutions could be:
__label_namelabels, as it done in target relabelling (then I can teach cadvisor to expose them with the__prefixMy personal preference would be for the former, since it matches the target relabelling behaviour. Though that behaviour could actually be implemented with a labeldrop action anyway.