MCPcopy Create free account
hub / github.com/prometheus/client_python / collect

Method collect

tests/test_core.py:739–740  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected