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 upDefault relabelling to (.*) and $1 ? #1222
Comments
This comment has been minimized.
This comment has been minimized.
|
That's a good idea |
This comment has been minimized.
This comment has been minimized.
|
|
1 similar comment
This comment has been minimized.
This comment has been minimized.
|
|
fabxc
closed this
in
#1226
Nov 17, 2015
This comment has been minimized.
This comment has been minimized.
|
Should the default regex actually be |
jimmidyson
reopened this
Nov 25, 2015
This comment has been minimized.
This comment has been minimized.
|
Then the case for assigning a static value wouldn't work. No source labels are present, so the concatenated value is the empty string, Did you see an issue with |
This comment has been minimized.
This comment has been minimized.
|
Good point. The problem was actually with Kubernetes discovery (of course ;)) where we relabel the metrics path from the service annotation, but this was setting empty path if there was no annotation. I'll update the config there instead. Closing. |
jimmidyson
closed this
Nov 25, 2015
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. |
brian-brazil commentedNov 14, 2015
Relabelling has a lot of irreducible complexity due to the abundance of different configurations we must allow for, however I think there's some scope for making the syntax a little easier.
I propose that we default the regex to
(.*)and the replacement to$1. The effect of this is that copies and setting static labels will both be much easier, both of which are very common uses.would become
This is a small bit magic which may cause confusion, but overall I think it'd be a benefit.
@fabxc @beorn7 @juliusv