graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.89k stars 1.26k forks source link

[Q] How to use linearRegression in grafana for forecasting #2690

Closed rschitz closed 3 years ago

rschitz commented 3 years ago

It looks like we can't use future date as "until" https://graphite.readthedocs.io/en/latest/functions.html#graphite.render.functions.linearRegression

Any suggestions?

deniszh commented 3 years ago

Could you please elaborate why not, @rschitz ? Future time is really not supported in whisper as storage format, but, theoretically functions can generate future datapoints.

rschitz commented 3 years ago

i tried several combinations for from/until but still the same result, i got points for the past but not the future:

image

rldleblanc commented 3 years ago

I too am running into this. I get a nice trend line, but can't extend it into the future past the whisper data. Maybe the function could be extended to take the trend line generated with startSourceAt and endSourceAt and provide startForecastAt and endForecastAt where it would generate the forecast data on the fly.

deniszh commented 3 years ago

TBH I puzzled with forecast finctions too. In general, Graphite do not support future datapoints, so, their usecase can be only quite limited, though...

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.