Is there any way to optionally disable those collectors during usage? I would like to be able to disable those metrics from being generated except if they will actually be used.
A quick check on the code shows me that they are loaded from prometheus_client/__init__.py but there aren't (that I see) many options on that except by doing a PR with code modified.
I was able to see that trying to import resource on Microsoft Windows used to cause an exception, but the current version only ignores and generate constant values for those metrics:
Thanks!
Is there any way to optionally disable those collectors during usage? I would like to be able to disable those metrics from being generated except if they will actually be used.
A quick check on the code shows me that they are loaded from
prometheus_client/__init__.pybut there aren't (that I see) many options on that except by doing a PR with code modified.I was able to see that trying to
import resourceon Microsoft Windows used to cause an exception, but the current version only ignores and generate constant values for those metrics:Thanks!