Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Group and sort functions for measures #32

Open
ozerovandrei opened this issue Sep 6, 2017 · 2 comments
Open

Feature Request: Group and sort functions for measures #32

ozerovandrei opened this issue Sep 6, 2017 · 2 comments

Comments

@ozerovandrei
Copy link

ozerovandrei commented Sep 6, 2017

Right now it's impossible to sort all obtained measures or show only part of them.

For example we need to get instances with top CPU utilization. That means that we want to get all metrics (cpu_util) for some resource type (instance), sort by value in descending order and show only some of them in Grafana.

We can use "resource search" query type, set resource type, metric name and some simple query string (say, started_at>='somedate'). After that we will receive some amount of metrics, maximum amount of those metrics will be equal to api.max_limit value in gnocchi.conf.
If we want to get all measures (to perform some kind of analysis) we have to set big value for api.max_limit option in gnocchi.conf. But in this case we will get thousands of metrics on one chart in Grafana.

What we need is some kind of functions to set them on all of our received values.
There are some example implementations:
Graphite datasource: http://docs.grafana.org/features/datasources/graphite/#functions
Zabbix datasource: http://docs.grafana-zabbix.org/reference/functions/

@sileht
Copy link
Member

sileht commented Sep 6, 2017

I have tracked the pagination stuffs here:

#33

@sileht
Copy link
Member

sileht commented Sep 6, 2017

About functions, we have a start of this. Last release of the grafana plugin (1.5.2) have a new field called 'transformation' and use the 'transform' API of future Gnocchi 4.1.

Currently Gnocchi server will implement only some basic functions (absolute, negative, ...). But it can be enhanced with your need. Feel free to open a ticket with functions you need on Gnocchi server side.

So feature is already in progress :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants