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

Optionally disable Process and Platform collectors #92

Open
chas0amx opened this issue Mar 23, 2021 · 0 comments
Open

Optionally disable Process and Platform collectors #92

chas0amx opened this issue Mar 23, 2021 · 0 comments

Comments

@chas0amx
Copy link

chas0amx commented Mar 23, 2021

Implement options to disable those collectors during usage

Something like this:

REGISTRY.unregister(PROCESS_COLLECTOR)
REGISTRY.unregister(PLATFORM_COLLECTOR)
REGISTRY.unregister(REGISTRY._names_to_collectors['python_gc_duration_seconds_sum'])
REGISTRY.unregister(REGISTRY._names_to_collectors['python_gc_uncollectable_objects_sum'])
REGISTRY.unregister(REGISTRY._names_to_collectors['python_gc_collected_objects_sum'])

Something similar has already discussed in prometheus/client_python#414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants