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

To add gc_collectors metrics to the project as a basic (out of the box) functionality. #95

Open
ArtyomKozyrev8 opened this issue Dec 5, 2023 · 1 comment

Comments

@ArtyomKozyrev8
Copy link

Hello I would like to have the same functionality (gc_collector metrics) out of the box as we have in prometheus-client package.

Can I try to create PR and add the functionality to the project? Or probably there is already such functionality (I could not find it in the repo code) and I can switch it on somehow?

The expected behavior:

# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 4920.0
python_gc_objects_collected_total{generation="1"} 491.0
python_gc_objects_collected_total{generation="2"} 0.0
# HELP python_gc_objects_uncollectable_total Uncollectable object found during GC
# TYPE python_gc_objects_uncollectable_total counter
python_gc_objects_uncollectable_total{generation="0"} 0.0
python_gc_objects_uncollectable_total{generation="1"} 0.0
python_gc_objects_uncollectable_total{generation="2"} 0.0
# HELP python_gc_collections_total Number of times this generation was collected
# TYPE python_gc_collections_total counter
python_gc_collections_total{generation="0"} 154.0
python_gc_collections_total{generation="1"} 14.0
python_gc_collections_total{generation="2"} 1.0
@ArtyomKozyrev8
Copy link
Author

@claws hi, may I try to implement this feature?

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

No branches or pull requests

1 participant