Parse Prometheus text format from a unicode string. See text_fd_to_metric_families.
(text: str)
| 11 | |
| 12 | |
| 13 | def 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 | |
| 21 | ESCAPE_SEQUENCES = { |