Skip to content

Feature : Metrics for specific process #6

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

Merged

Conversation

GreenBlood
Copy link
Contributor

@GreenBlood GreenBlood commented Jun 6, 2024

Hey, I've stumbled on your project which does exactly what I needed (so thank you :) ). I needed to monitor other processes aswell, so I've added another function in order to allow to monitor metrics for arbitrary PID (for example, child processes of the current process).

I've modified your base init_process_observer to be a simple wrapper with current PID around a new register_metrics function.

(Also, fixed the docstrings to fix the function doc on doc.rs

Best regards :)
Green.

@GreenBlood GreenBlood force-pushed the feat/metrics_specific_process branch from 9fcea3e to c82a37e Compare June 10, 2024 13:31
@haixuanTao
Copy link
Owner

Looks great!

Thanks!

Sorry for the late reply!

@haixuanTao haixuanTao merged commit 90dc790 into haixuanTao:master Jun 12, 2024
13 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