Add wildcard support to queries

Bug #1576835 reported by Sergio Colinas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Wishlist
Julien Danjou

Bug Description

It will be really usefull to support wildcards when searching for resources and aggregation across metrics.

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

Could you be more specific, maybe with one or two examples?

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

For example, get instances filtering by name using a pattern "default_instance*"
This feature it's particularly useful when you have the display names for all your metadata added to gnocchi (host_name, project_name, user_name, image_name, etc.)

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Julien Danjou (jdanjou) wrote :

You can already do that using the like operator: {"like": "instance%"}

Changed in gnocchi:
status: Triaged → Invalid
Revision history for this message
Sergio Colinas (sergio-n) wrote :

Julien,

Thanks, that's great news. Maybe the doc it's not very clear (it only mention it, but there are no examples at all).

Julien Danjou (jdanjou)
Changed in gnocchi:
status: Invalid → Triaged
Revision history for this message
Julien Danjou (jdanjou) wrote :

You're right, I'll do that!

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/322841

Changed in gnocchi:
assignee: nobody → Julien Danjou (jdanjou)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (master)

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

commit dbfe0509bc15af73cffd1eaac4110393019819bd
Author: Julien Danjou <email address hidden>
Date: Mon May 30 16:09:07 2016 +0200

    doc: include an example with the `like' operator

    Change-Id: I40d538b08d7dfa9305d576d4de68a94356b3d103
    Closes-Bug: #1576835

Changed in gnocchi:
status: In Progress → Fix Committed
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/gnocchi 2.2.0

This issue was fixed in the openstack/gnocchi 2.2.0 release.

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