Add groupby aggregation function
Bug #1573023 reported by
Sergio Colinas
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi |
Fix Released
|
Wishlist
|
Julien Danjou |
Bug Description
When you aggregate measures using groupby, you can't specify an aggregation function for the grouping aggregation (it will use the same as the measures).
For example, if you want to get the average memory usage groupby project in a month, you'll need the sum of each instance average memory usage.
If you use sum you will get the sum of each instance memory usage for each min granularity in a month, this will duplicate the measures and the result will be wrong. If you use mean, you will get the average instance memory usage, not the project average.
Changed in gnocchi: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in gnocchi: | |
assignee: | nobody → Julien Danjou (jdanjou) |
Changed in gnocchi: | |
milestone: | none → 3.0.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I'm not sure I understand. If you want to the average memory usage of instances of a project, you just aggregate the 'mean' of all instances grouped by projects.
So asking the aggregation of 'mean' for instances/memory grouped by project should give you a list of the average of each project' instances memory usage over different period of time. You then just need to re-average that yourself is needed.
What do I miss?