Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/client_python
/ CustomCollector
Class
CustomCollector
tests/test_core.py:738–740 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
736
737
def
custom_collector(self, metric_family):
738
class
CustomCollector:
739
def
collect(self):
740
return
[metric_family]
741
742
self.registry.register(CustomCollector())
743
Callers
2
custom_collector
Method · 0.70
custom_collector
Method · 0.70
Calls
no outgoing calls
Tested by
2
custom_collector
Method · 0.56
custom_collector
Method · 0.56