New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop the metric name after any transformation #380
Comments
@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. |
/cc @u-c-l |
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. |
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. |
Merged. I'm going to close this. Please reopen if needed. |
add notice for default behavior of using 3GB RAM
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. |
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).
The text was updated successfully, but these errors were encountered: