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 uplabeldrop does not work as expected #2367
Comments
This comment has been minimized.
This comment has been minimized.
|
Source labels aren't relevant for label drop, it's applying to the label names. It looks like you want a normal replace in this case. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil thanks! Nevermind, the syntax is:
|
roman-vynar
closed this
Jan 25, 2017
This comment has been minimized.
This comment has been minimized.
|
To drop an individual label you can use replace with a replacement value of "". labeldrop is for bulk dropping of labels. |
roman-vynar
referenced this issue
Jan 26, 2017
Closed
Error out if labeldrop/labelkeep are used with source_labels #2368
nkinkade
referenced this issue
Oct 24, 2017
Merged
Drops all 'ifAlias' labels that are just empty strings. #107
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.
roman-vynar commentedJan 25, 2017
Prometheus 1.5.0 introduced
labeldroprelabeling action. However, it does not work as expected.The following config results in dropping all time series containing that label
container_label_com_amazonaws_ecs_task_arninstead of just a single label:This config does nothing to the time series and label when using something on matching regex:
The same story when placing the above into
relabel_configs.How does it suppose to work?
Thanks.