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

Wire up DERIVATIVE aggregate #1822

Closed
pauldix opened this issue Mar 3, 2015 · 4 comments · Fixed by #2569
Closed

Wire up DERIVATIVE aggregate #1822

pauldix opened this issue Mar 3, 2015 · 4 comments · Fixed by #2569
Assignees
Milestone

Comments

@pauldix
Copy link
Member

pauldix commented Mar 3, 2015

If the query is like this:

SELECT DERIVATIVE(value)
FROM cpu
WHERE time > now() - 4h

It will compute the rate of change between each data point.

If the query is like this:

SELECT DERIVATIVE(MEAN(value))
FROM cpu
WHERE time > now() - 4h
GROUP BY time(5m)

It will take the rate of change of the mean of 5 minute buckets of time.

@CMGS
Copy link

CMGS commented Apr 3, 2015

so where is derivative?

@regit
Copy link

regit commented Apr 7, 2015

+1 or is there another way to access to derivative/speed on data ?

@anandmani-lab49
Copy link

I am using rc25 and I don't see the derivative function. Get the following error:
ERROR: {"results":[{"error":"function not found: "DERIVATIVE""}]}
Here is my query:
SELECT DERIVATIVE(value) FROM "my.series" WHERE time > now() - 15m GROUP BY time(10s) ORDER BY asc
Any ideas please?

@otoolep
Copy link
Contributor

otoolep commented Apr 20, 2015

@anandmani-lab49 -- keep an eye on this ticket. Once the functions are implemented, this ticket will be closed.

@beckettsean beckettsean added this to the 0.9.0 milestone Apr 20, 2015
@toddboom toddboom modified the milestones: 0.9.0, 0.9.1 May 8, 2015
jwilder added a commit that referenced this issue May 13, 2015
Calculates the derivative of consequtive points and normalizes the
value to a given interval.  It supports simple derivates over
fields as well as nested derivatives over another aggregate function.

Fixes #1822
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants