Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ TextCollector
Class
TextCollector
tests/test_parser.py:369–371 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
367
families = list(text_string_to_metric_families(text))
368
369
class
TextCollector:
370
def
collect(self):
371
return
families
372
373
registry = CollectorRegistry()
374
registry.register(TextCollector())
Callers
1
test_roundtrip
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_roundtrip
Method · 0.56