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
Transformations: Add regression analysis transformation #78457
Conversation
/deploy-to-hg |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible issue with Data frames...
docs/sources/panels-visualizations/query-transform-data/transform-data/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update! I've left one question which should be resolved before you merge, but otherwise, this looks fine to me.
'Polynomial regression' | ||
)} | ||
|
||
> **Note:** This mode is an experimental feature. Engineering and on-call support is not available. Documentation is either limited or not provided outside of code comments. No SLA is provided. Enable the \`regressionTransformation\` feature toggle in Grafana to use this feature. Contact Grafana Support to enable this feature in Grafana Cloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are you referring to when you use the word "mode" here? The two models above or the whole Regression analysis transformation? If the former, then we should use "model"; if the latter then we should use "transformation". It's not clear what you mean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thank you. This refers the the transformation as a whole. Have changed the note to reflect that.
I'm really excited about this feature -- it seems to be included in 10.3, which is what I just updated to. However, I seem unable to find how to use it or turn it on or enable it. I've been looking for documentation to assist, without any luck so far. Help? |
Same here! Following for updates. |
The documentation is in the PR you're commenting on, and visible at https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/transform-data/#regression-analysis Notably, you'll need to turn a feature toggle on. |
Ah, excellent! The only thing I see now is that in my implementation, I have network graphs where there's an I tried adding two regressions and set them both to Polynomial (which works perfectly!) but the |
@whizkidTRW Hmm, it should be named after the y field: https://github.com/grafana/grafana/blob/main/public/app/features/transformers/regression/regression.ts#L111 Not sure why yours are named value. Open an issue and follow the guide on how to attach the panel data and I can take a look. |
Done! #81317 Let me know if you need more data or examples, I'm happy to share as I really look forward to using this feature. Thanks! |
Should be fixed with this PR: #81332 |
Excellent. Thank you! I look forward to trying this out. |
What is this feature?
This adds a transformation that fits a mathematical function to X/Y data.
Typically this can be used on time series to get a trend line.
Which issue(s) does this PR fix?:
Fixes #7812
Fixes #73441
Special notes for your reviewer:
Todo:
Please check that: