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

feat: add sampler for Rezolus itself #90

Merged
merged 5 commits into from
Oct 24, 2023
Merged

Conversation

brayniac
Copy link
Contributor

Adds a sampler to gather basic resource utilization metrics for Rezolus itself.

@brayniac brayniac requested a review from mihirn October 24, 2023 21:23
)]
pub static RU_UTIME: LazyCounter = LazyCounter::new(Counter::default);

histogram!(
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious: is defining both of them separately the same as counter_with_histogram!?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is. I switched over to the convenience macros for all these stats. If we start using labels, we'll need to go with the previous approach to add that metadata.

@brayniac brayniac merged commit 9feb36f into iopsystems:main Oct 24, 2023
15 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