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 upForbid invalid relabel configurations #1900
Comments
grobie
added
kind/bug
component/config
labels
Aug 18, 2016
This comment has been minimized.
This comment has been minimized.
|
@grobie I'm not an expert in relabeling, all my knowledge comes from @brian-brazil PromCon talk. I've implemented a draft of this fix based on https://prometheus.io/docs/operating/configuration/#<relabel_config>:
However I found some counterexamples in
Am I missing something? |
This comment has been minimized.
This comment has been minimized.
|
It is valid to not have source labels. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil in any case or in some particular? In https://prometheus.io/docs/operating/configuration/#<relabel_config> only |
This comment has been minimized.
This comment has been minimized.
|
Replace doesn't require |
This comment has been minimized.
This comment has been minimized.
|
Omitting the source labels allows you to attach new labels. That's not On Mon, Aug 29, 2016, 3:12 PM Alexey Miroshkin notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
That's useful for target relabelling, as you might want to add something static that's not from SD. |
grobie
closed this
Aug 29, 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. |
grobie commentedAug 18, 2016
•
edited
This produces an empty label name
I guess a configuration with either just
source_labelsor justtarget_labelor any other config not having the minimum set of attributes set should be rejected.