Ceilometer doesnt expose a way to retrieve just a distinct list of active meter names

Bug #1506959 reported by Rohit Jaiswal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Wishlist
Rohit Jaiswal
python-ceilometerclient
Fix Released
Undecided
Rohit Jaiswal

Bug Description

Horizon has the resource usage pane. The stats tab on that pane has a dropdown - Metric which gets its data from the Ceilometer meter-list API, however, this API returns meter information (with project and resource info) that is not unique and repetitive based on which meter has more data points (samples) with most recent timestamps.

By default meter-list will also limit the size of resultset to 100 so there is no guarantee that the first 100 will contain all the meter names from the backend. Increasing the limit risks timeout by client, in this case Horizon pane exhibits a hang.

There should a different API to retrieve just the distinct set of meter names, for which there is at least one sample in the sample table. This APi can be consumed by Horizon and other users who just want to know the unique set of meters in the system.

Changed in ceilometer:
assignee: nobody → Rohit Jaiswal (rohit-jaiswal-3)
Revision history for this message
gordon chung (chungg) wrote :

adding this to horizon+ceilometer discussion

Changed in ceilometer:
importance: Undecided → Wishlist
gordon chung (chungg)
Changed in ceilometer:
status: New → Triaged
Revision history for this message
Rohit Jaiswal (rohit-jaiswal-3) wrote :

Is adding a new get_distinct_meters API to the v2 api an option to consider? this would have to be supported by all backends.. just curious since v2 is in maintenance mode, but the horizon issue is still there..

Revision history for this message
Rohit Jaiswal (rohit-jaiswal-3) wrote :

A possible option is to pass in an optional flag, distinct to the get_meters API to get a distinct set of meter names..

Changed in python-ceilometerclient:
assignee: nobody → Rohit Jaiswal (rohit-jaiswal-3)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/259626

Changed in ceilometer:
status: Triaged → In Progress
tags: added: liberty
tags: removed: liberty
Changed in python-ceilometerclient:
status: New → In Progress
Changed in python-ceilometerclient:
assignee: Rohit Jaiswal (rohit-jaiswal-3) → Lianhao Lu (lianhao-lu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/259626
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=52f48485eeed50dfa4705fc73e278214eb9a7f00
Submitter: Jenkins
Branch: master

commit 52f48485eeed50dfa4705fc73e278214eb9a7f00
Author: Rohit Jaiswal <email address hidden>
Date: Fri Dec 18 12:56:59 2015 -0800

    Enhances get_meters to return unique meters

    Enhances get_meters in the storage layer
    and API to accept a unique flag and return
    back a list of unique meters for clients like
    Horizon to consume.

    DocImpact
    Change-Id: Ifdcb907df867ae650eae733bc7b635a283939064
    Closes-Bug: 1506959

Changed in ceilometer:
status: In Progress → Fix Released
no longer affects: ceilometer (Ubuntu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/274185

Changed in python-ceilometerclient:
assignee: Lianhao Lu (lianhao-lu) → Rohit Jaiswal (rohit-jaiswal-3)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ceilometerclient (master)

Reviewed: https://review.openstack.org/272633
Committed: https://git.openstack.org/cgit/openstack/python-ceilometerclient/commit/?id=c45000c7594ad6fbfabf44c0615dce3021f43605
Submitter: Jenkins
Branch: master

commit c45000c7594ad6fbfabf44c0615dce3021f43605
Author: Rohit Jaiswal <email address hidden>
Date: Tue Jan 26 08:36:43 2016 -0800

    Enhances client to support unique meter retrieval

    meter list API is enhanced to support a unique param
    If specified as True, it returns a unique list of
    meters.

    This patch enhances the ceilometer-client to support
    the unique argument in the shell and the client bindings.

    DocImpact
    Closes-Bug: #1506959

    Change-Id: I011ca725c25e1cdbe9891c3719f13f5cd34142ea

Changed in python-ceilometerclient:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/ceilometer 6.0.0.0b3

This issue was fixed in the openstack/ceilometer 6.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-ceilometerclient (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/291832

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ceilometerclient (stable/mitaka)

Reviewed: https://review.openstack.org/291832
Committed: https://git.openstack.org/cgit/openstack/python-ceilometerclient/commit/?id=cb98c6d05fadb4f9df202235a9d8582f5ed40339
Submitter: Jenkins
Branch: stable/mitaka

commit cb98c6d05fadb4f9df202235a9d8582f5ed40339
Author: Rohit Jaiswal <email address hidden>
Date: Tue Jan 26 08:36:43 2016 -0800

    Enhances client to support unique meter retrieval

    meter list API is enhanced to support a unique param
    If specified as True, it returns a unique list of
    meters.

    This patch enhances the ceilometer-client to support
    the unique argument in the shell and the client bindings.

    DocImpact
    Closes-Bug: #1506959

    Change-Id: I011ca725c25e1cdbe9891c3719f13f5cd34142ea
    (cherry picked from commit c45000c7594ad6fbfabf44c0615dce3021f43605)

tags: added: in-stable-mitaka
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-ceilometerclient 2.4.0

This issue was fixed in the openstack/python-ceilometerclient 2.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (stable/liberty)

Change abandoned by Matt Riedemann (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/274185

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/python-ceilometerclient 2.5.0

This issue was fixed in the openstack/python-ceilometerclient 2.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-ceilometerclient 2.4.0

This issue was fixed in the openstack/python-ceilometerclient 2.4.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.