MCPcopy Index your code
hub / github.com/prometheus/client_python / TextCollector

Class TextCollector

tests/openmetrics/test_parser.py:720–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718 families = list(text_string_to_metric_families(text))
719
720 class TextCollector:
721 def collect(self):
722 return families
723
724 registry = CollectorRegistry()
725 registry.register(TextCollector())

Callers 1

test_roundtripMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_roundtripMethod · 0.56