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__name__ selector can potentially be harmful #1167
Comments
This comment has been minimized.
This comment has been minimized.
|
It's not correct to preserve the If you really want to do this, use |
This comment has been minimized.
This comment has been minimized.
|
Fundamentally there's a number of ways you can end up in this situation with any labels. It follows logically from how the language semantics, and while it may seem a little odd it is the correct behaviour. Trying to impose different semantics in these corner cases would add complexity for little gain, so I don't think we're going to change anything here. |
brian-brazil
closed this
Oct 27, 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. |
yacoob commentedOct 15, 2015
I was playing with the network stats I get out of
node_exporter. I wasn't exactly sure what kind of stuff is there, so I've asked for{__name__=~"node_network_transmit.+",device="eth1"}. This gave me following vector:Happy with the results, I've decided to graph it, so I've changed the expression to:
which resulted in following vector:
As you can see, you get 8 row vector, each row having identical labels. This is rather unexpected. If you ask me, the
__name__label should have been preserved, but I can see how this can throw people off in other situations.Thoughts?