-
Notifications
You must be signed in to change notification settings - Fork 84
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
Clean raw data metrics that do not receive measures #1385
Clean raw data metrics that do not receive measures #1385
Conversation
aa9e0ea
to
bd1caee
Compare
...indexer/alembic/versions/18fff4509e3e_create_column_for_truncate_inactive_metrics_process.py
Show resolved
Hide resolved
Thanks @chungg for the review! I address the points you raised, and replied to some of the open questions. I am eager to see your feedback on them! Again, thanks for the support here! |
Thanks @chungg! Your support is much appreciated! |
d08a08f
to
33f7331
Compare
@chungg now this patch seems to be fine. I also squashed all commits to avoid mixing up things, as the patch was depending on others. |
The truncating of the raw metrics data is only done when new measures are pushed. Therefore, if no new measures are pushed, and the archive policy is updated to reduce the back window, the raw data points for metrics that are not receiving new data points are never truncated. The goal of this PR is to propose a method to identify metrics that are in "inactive state", meaning, not receiving new data points, and execute their raw data points truncation when the archive policy backwindow is changed.
33f7331
to
ee6428b
Compare
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.
Hi Rafael, the overall code looks good to me, I have only a suggestion. Thanks for the patch.
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.
Nice, thanks Rafael, it looks good to me
Thank you guys (@pedro-martins and @chungg) for your reviews! If you think that there is something else to be changed, let me know. |
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.
lgtm
Hello @chungg and @tobias-urdin can we merge this one. I have some time this week, and I would like to use this time to rebase the other patch as soon as this patch is merged. |
Thanks! |
The truncating of the raw metrics data is only done when new measures are pushed. Therefore, if no new measures are pushed, and the archive policy is updated to reduce the back window, the raw data points for metrics that are not receiving new data points are never truncated.
The goal of this PR is to propose a method to identify metrics that are in "inactive state", meaning, not receiving new data points, and execute their raw data points truncation when the archive policy backwindow is changed.