8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc852a9 commit 052116dCopy full SHA for 052116d
README.md
@@ -480,7 +480,7 @@ system.
480
481
```python
482
from prometheus_client.parser import text_string_to_metric_families
483
-for family in text_string_to_metric_families("my_gauge 1.0\n"):
+for family in text_string_to_metric_families(u"my_gauge 1.0\n"):
484
for sample in family.samples:
485
print("Name: {0} Labels: {1} Value: {2}".format(*sample))
486
```
prometheus_client/parser.py
@@ -12,7 +12,7 @@
12
13
14
def text_string_to_metric_families(text):
15
- """Parse Prometheus text format from a string.
+ """Parse Prometheus text format from a unicode string.
16
17
See text_fd_to_metric_families.
18
"""
0 commit comments