first of all thank you for providing your package! We use it to create our own metrics. Unfortunately we found that Prometheus could not pick up our metrics because it ran into a parsing error.
The problem could be traced back to the "\r" character:
Error message: strconv.ParseFloat: parsing "0\r": invalid syntax
Hello,
first of all thank you for providing your package! We use it to create our own metrics. Unfortunately we found that Prometheus could not pick up our metrics because it ran into a parsing error.
The problem could be traced back to the
"\r"
character: Error message:strconv.ParseFloat: parsing "0\r": invalid syntax
I have already created a PR that deletes
"\r"
, because actually only"\n"
has to be used. PR: https://github.com/prismamedia/metrics/pull/11The problem was found on Linux with the following Prometheus version: