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

Simplify metrics processor #76

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

naved001
Copy link
Collaborator

This is an attempt to simplify the huge methods in metrics processor. Hopefully this makes it more readable, specially condense_metrics.

This is an attempt to make it more easy to follow the logic of condense_metrics.

Notable changes are:
* move the logic to check if pod was stopped or if the metrics are different
to separate functions
* start the loop with the index at 1 since all the comparisons need to be with
a previous timestamp or previous metric
@naved001 naved001 merged commit f159566 into CCI-MOC:main Sep 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants