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

PromQL: Covariance and correlation functions #2615

Open
mattbostock opened this Issue Apr 13, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@mattbostock
Copy link
Contributor

mattbostock commented Apr 13, 2017

Are there any plans to support covariance and correlation functions in PromQL?

It could be useful for post-mortem analysis to find correlations that could explain the impact or possible root causes of an incident.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Apr 13, 2017

In my opinion that's getting into heavy statistical analysis, and a dedicated tool such as R would be a more appropriate way to manage that.

@adamdrake

This comment has been minimized.

Copy link

adamdrake commented Apr 16, 2017

I've been thinking about this as well. It would probably be helpful to have this functionality for the reasons mentioned. @brian-brazil, can you help me understand, from a project perspective, when something becomes heavy statistical analysis? There is other functionality (e.g., Holt-Winters) present which seems more complicated than correlations, so I'm not sure where the line is drawn.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Apr 16, 2017

Holt winters currently is the line, and I'm not sure we'd even add something else that complex.

@mattbostock

This comment has been minimized.

Copy link
Contributor Author

mattbostock commented Apr 17, 2017

R is a great tool, though it means having to use a separate tool (and learn it if I didn't know it).

With the addition of the remote read functionality, it's feasible that PromQL could be used increasingly for queries that were perhaps less obvious for the alerting use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.