Allow filter by granularity when aggregating across metrics

Bug #1512740 reported by nubeliu_dev
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Wishlist
Julien Danjou

Bug Description

When you aggregate metrics, it will be useful to filter one granularity.

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Triaged
importance: Undecided → Critical
importance: Critical → Wishlist
heha (zhanghanqun)
Changed in gnocchi:
assignee: nobody → heha (zhanghanqun)
Revision history for this message
Sam Morrison (sorrison) wrote :

Is anyone working on this, I think this feature is quite important. We have 3 policy rules and when you get all measures it returns them for each policy. This is a pain as you usually only want it based on one granularity rule. Eg when making graphs etc.

Revision history for this message
Julien Danjou (jdanjou) wrote :

Sam, are you talking on aggregation or in general?

Nobody's working on this for aggregation, but in general, this is already supported – though I realized it's not documented.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to gnocchi (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/265753

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/265753
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=1dbd7763a0b875e1cf951a1b40afd64458bed852
Submitter: Jenkins
Branch: master

commit 1dbd7763a0b875e1cf951a1b40afd64458bed852
Author: Julien Danjou <email address hidden>
Date: Mon Jan 11 11:17:08 2016 +0100

    doc: add granularity argument for measure retrieval

    Change-Id: I8312efa7a7cf1e519cbc73eed6aa2f814c354cf3
    Related-Bug: #1512740

Revision history for this message
Sergio Colinas (sergio-n) wrote :

Hi Julien,

I've created this bug and the general that you've fixed (https://bugs.launchpad.net/gnocchi/+bug/1506628)

We also need this filter when aggregate metrics, like Sam said, is a pain as you usually only want it based on one granularity rule.

Revision history for this message
Julien Danjou (jdanjou) wrote :

Ok, I'll keep that around and I'll try to work on it soon!

Revision history for this message
Sam Morrison (sorrison) wrote :

I added a bug for support in the client https://bugs.launchpad.net/python-gnocchiclient/+bug/1532984

heha (zhanghanqun)
Changed in gnocchi:
assignee: heha (zhanghanqun) → nobody
Julien Danjou (jdanjou)
Changed in gnocchi:
assignee: nobody → Julien Danjou (jdanjou)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to gnocchi (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/267606

Changed in gnocchi:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on gnocchi (master)

Change abandoned by Julien Danjou (<email address hidden>) on branch: master
Review: https://review.openstack.org/267606

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/267607
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=9afee322b340e3eb85c20e700f6d7ff3d221f147
Submitter: Jenkins
Branch: master

commit 9afee322b340e3eb85c20e700f6d7ff3d221f147
Author: Julien Danjou <email address hidden>
Date: Thu Jan 14 14:47:54 2016 +0100

    storage,rest: add support for granularity in aggregation

    This allows to provide the storage driver a granularity argument when
    doing cross-metric aggregation.

    Change-Id: I33d48e66c39f7cf02f5fa26697994750b5215513
    Closes-Bug: #1512740

Changed in gnocchi:
status: In Progress → Fix Committed
Julien Danjou (jdanjou)
Changed in gnocchi:
milestone: none → 2.0.0
status: Fix Committed → Fix Released
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.