Description of problem: 'Top 5' panels on 'Ceph Pools' dashboard don't show top 5 pools in the selected category. Instead they show first 5 pools ordered by chosen category. Version-Release number of selected component (if applicable): cephmetrics-grafana-plugins-0.1-372_g098fb9a.el7.centos.x86_64 cephmetrics-0.1-372_g098fb9a.el7.centos.x86_64 How reproducible: 100% Steps to Reproduce: 1. Create several pools, at least 5 (or have a rados gateway prepared and use it - 5 pools are created just for the gateway) 2. Create another pool(s) 3. Fill pools created in previous step with some data Actual results: Only pools created in first step are displayed in 'Top 5' panels. Expected results: Top 5 pools in proper category should be displayed. Additional info:
Queries needs to be updated to use a combination of limit for the top 5, with sortByMaxima calls
PR submitted upstream, pending review and merge https://github.com/ceph/cephmetrics/pull/142
Fix is merged
Tested with: cephmetrics-1.0-6.el7cp.x86_64 Top 5 metrics seems to work properly.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3387