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 upDrop the metric name after any transformation #380
Comments
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil I'd like to get your opinion on this: I'm actually working on a change which tries to be clever about assigning automatic new metric names after transformations, when possible. Some examples:
If the corner-cases and combinations of multiple aggregations end up generating too ugly metric names, we can still decide for just always dropping the metric names after any transformations. Just wanted to throw this idea out there. |
This comment has been minimized.
This comment has been minimized.
|
/cc @u-c-l |
This comment has been minimized.
This comment has been minimized.
|
I think this may be workable, and avoid a lot of problems if we can pull it off. I suspect there's too many edge cases though. For example the purpose of the level: prefix is so you can tell what labels are on a variable, a form of Hungarian notation that makes it obvious if you've messed up your label modifiers. That doesn't work when a label being empty is the same as it not existing, and I don't think it's practical to add in the strong typing needed to make it work. |
This comment has been minimized.
This comment has been minimized.
|
For now, this is solved by completely dropping the metric name in f3e9f6b. This has yet to be merged into master after merging the exp/storage-ng branch. Keeping this issue open until then to not lose track of this. |
This comment has been minimized.
This comment has been minimized.
|
Merged. I'm going to close this. Please reopen if needed. |
beorn7
closed this
Nov 26, 2014
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
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. |
juliusv commentedFeb 26, 2014
Prometheus has no way of telling whether the original name of a metric is still semantically correct after applying any kind of transformation to it, so the metric name should be dropped in that case.
This requires some refactoring, as we currently don't deal well with metrics without a name everywhere (in one place, we even panic).