-
Notifications
You must be signed in to change notification settings - Fork 880
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
feat(analysis): Add Measurements Retention Limit Option for Metrics #1729
Conversation
2c7071c
to
cb59bd4
Compare
Codecov Report
@@ Coverage Diff @@
## master #1729 +/- ##
==========================================
+ Coverage 82.02% 82.04% +0.01%
==========================================
Files 116 116
Lines 16096 16126 +30
==========================================
+ Hits 13203 13230 +27
- Misses 2218 2220 +2
- Partials 675 676 +1
Continue to review full report at Codecov.
|
Signed-off-by: Rohit Agrawal <[email protected]>
cb59bd4
to
ee91d9c
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
This looks mostly good but I do not think the spec.measurementRetention
is honored when specified from an AnalysisTemplate.
I think a change to utils/analysis/helpers.go::NewAnalysisRunFromTemplates
needs to be added similar to the dryRun feature.
@jessesuen Yes, I think we need to add it to If you think that we should just include all the changes for Rollouts/Experiments in the same PR then I can add everything to this PR. |
I am okay with a follow-up PR that takes advantage of the feature. |
Description
It could be very useful to retain the maximum data points while running an analysis in the dry-run mode to understand what caused a particular metric to error out or why the final result came out as inconclusive.
Currently, the controller only retains the ten latest measurements and it's not possible to configure/change this value as its hard-coded in the code.
Changes
This PR adds a new option called
measurementRetention
which can be used to retain other than the latest ten results for the metrics running in any mode (dry/non-dry). Setting this option to0
would disable it and, the controller will revert back to the existing behavior of retaining the latest ten measurements.Checklist
"fix(controller): Updates such and such. Fixes #1234"
.Signed-off-by: Rohit Agrawal [email protected]