Add 'AVG' aggregation for Stats Queries
Bug #1582810 reported by
Anish Mehta
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Medium
|
Nikhil Bansal |
Bug Description
We have a "SUM" aggregation in Stats Queries (for counters), but no "AVG" aggregation (for dials)
This needs to be added.
The need is currently being met by supporting "SUM" and "COUNT", and dividing SUM by COUNT, but this is problematic for two reasons:
1. It is inconvenient for the user to ask for two aggregations when they are really interesting in AVG.
2. The calculation is incorrect for optional attributes - the "SUM" only adds the attribute when present, but the "COUNT" counts all samples of the Stat - even those that don't have any contents for the optional attribute.
information type: | Proprietary → Public |
Changed in juniperopenstack: | |
importance: | Wishlist → Medium |
assignee: | Raj Reddy (rajreddy) → Nikhil Bansal (nikhilb-u) |
To post a comment you must log in.
Review in progress for https:/ /review. opencontrail. org/20855
Submitter: Nikhil Bansal (<email address hidden>)