diff --git a/README.md b/README.md index ee41e811..5601b12c 100644 --- a/README.md +++ b/README.md @@ -329,7 +329,7 @@ This is intended for advanced use cases where you have servers exposing Prometheus metrics and need to get them into some other system. -``` +```python from prometheus_client.parser import text_string_to_metric_families for family in text_string_to_metric_families("my_gauge 1.0\n"): for sample in family.samples: