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

Function text_string_to_metric_families

prometheus_client/parser.py:13–18  ·  view source on GitHub ↗

Parse Prometheus text format from a unicode string. See text_fd_to_metric_families.

(text: str)

Source from the content-addressed store, hash-verified

11
12
13def text_string_to_metric_families(text: str) -> Iterable[Metric]:
14 """Parse Prometheus text format from a unicode string.
15
16 See text_fd_to_metric_families.
17 """
18 yield from text_fd_to_metric_families(StringIO.StringIO(text))
19
20
21ESCAPE_SEQUENCES = {

Calls 1