You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. It would be nice to have something like ProcessCollector. Using ProcessCollector from prometheus_client raises an error:
Traceback (most recent call last):
File "prom.py", line 5, in <module>
prometheus_service.register(ProcessCollector(namespace='mydaemon'))
File "/usr/local/lib/python3.7/site-packages/aioprometheus/service.py", line 177, in register
self.registry.register(collector)
File "/usr/local/lib/python3.7/site-packages/aioprometheus/registry.py", line 32, in register
raise TypeError("Invalid collector type: {}".format(collector))
TypeError: Invalid collector type: <prometheus_client.process_collector.ProcessCollector object at 0x7f2887ca0c10>
Code:
from prometheus_client import ProcessCollector
from aioprometheus import Service
prometheus_service = Service()
prometheus_service.register(ProcessCollector(namespace='mydaemon'))
The text was updated successfully, but these errors were encountered:
Hi. It would be nice to have something like
ProcessCollector
. UsingProcessCollector
from prometheus_client raises an error:Code:
The text was updated successfully, but these errors were encountered: