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

chore: Refactor how base metrics are added to Sched metrics #1483

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

ArthurSens
Copy link
Member

A small refactoring to how base metrics are added to scheduler metrics.

I've noticed that this could be simplified while working on #1389. Some changes will conflict with the mentioned PR, but I'll solve them once one of them is merged :)

cc @SachinSahu431 @kakkoyun

Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
"go_threads",
}
matchedMetrics = append(matchedMetrics, baseMatrices...)
}
sort.Strings(matchedMetrics)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be optional now. We can remove the import as well in line 28.

Comment on lines -22 to -24
"go_gc_cycles_automatic_gc_cycles_total",
"go_gc_cycles_forced_gc_cycles_total",
"go_gc_cycles_total_gc_cycles_total",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we look at original file, the metrics were not sorted.

Copy link
Contributor

@SachinSahu431 SachinSahu431 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! The metrics generator file looks so clean now! 🤩

@ArthurSens ArthurSens merged commit c586fcc into main Apr 8, 2024
9 checks passed
@ArthurSens ArthurSens deleted the simplify-basemetrics branch April 8, 2024 12:41
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.

None yet

3 participants