Title: Parser | client_python
Open Graph Title: Parser
X Title: Parser
Description: The Python client supports parsing the Prometheus text format. This is intended for advanced use cases where you have servers exposing Prometheus metrics and need to get them into some other system. from prometheus_client.parser import text_string_to_metric_families for family in text_string_to_metric_families(u"my_gauge 1.0\n"): for sample in family.samples: print("Name: {0} Labels: {1} Value: {2}".format(*sample))
Open Graph Description: The Python client supports parsing the Prometheus text format. This is intended for advanced use cases where you have servers exposing Prometheus metrics and need to get them into some other system. from prometheus_client.parser import text_string_to_metric_families for family in text_string_to_metric_families(u"my_gauge 1.0\n"): for sample in family.samples: print("Name: {0} Labels: {1} Value: {2}".format(*sample))
X Description: The Python client supports parsing the Prometheus text format. This is intended for advanced use cases where you have servers exposing Prometheus metrics and need to get them into some other system. from prometheus_client.parser import text_string_to_metric_families for family in text_string_to_metric_families(u"my_gauge 1.0\n"): for sample in family.samples: print("Name: {0} Labels: {1} Value: {2}".format(*sample))
Opengraph URL: http://prometheus.github.io/client_python/parser/
Generator: Hugo 0.145.0
Domain: prometheus.github.io
{"@context":"http://schema.org","@type":"TechArticle","articleSection":"Parser","name":"Parser","url":"http://prometheus.github.io/client_python/parser/","headline":"Parser","description":"The Python client supports parsing the Prometheus text format. This is intended for advanced use cases where you have servers exposing Prometheus metrics and need to get them into some other system.\nfrom prometheus_client.parser import text_string_to_metric_families for family in text_string_to_metric_families(u\u0022my_gauge 1.0\\n\u0022): for sample in family.samples: print(\u0022Name: {0} Labels: {1} Value: {2}\u0022.format(*sample)) ","wordCount":"51","license":"Apache License 2.0","inLanguage":"en","isFamilyFriendly":"true","mainEntityOfPage":{"@type":"WebPage","@id":"http://prometheus.github.io/client_python/parser/"},"copyrightHolder":"client_python","copyrightYear":"0001","dateCreated":"0001-01-01T00:00:00.00Z","datePublished":"0001-01-01T00:00:00.00Z","dateModified":"2023-11-15T00:13:29.00Z","publisher":{"@type":"Organization","name":"client_python","url":"http://prometheus.github.io/client_python/","logo":{"@type":"ImageObject","url":"http://prometheus.github.io/client_python/brand.svg","width":"32","height":"32"}}}
| referrer | no-referrer |
| color-scheme | light dark |
| og:site_name | client_python |
| og:type | article |
| article:section | Parser |
| article:modified_time | 2023-11-15T00:13:29+01:00 |
| twitter:card | summary |
| None | 3 |
Links:
Viewport: width=device-width,initial-scale=1