posix4e / rust-metrics

Multi reporter metrics library (carbon, graphite, postgresql, prometheus)
Other
99 stars 19 forks source link

Fix text format parsing error #49

Closed overvenus closed 8 years ago

overvenus commented 8 years ago

Hello again @posix4e

Thank you for the quick response in last PR.

When I starting prometheus demo, prometheus server(version: 0.20.0) report an error: text format parsing error in line 1: invalid metric name

This PR add a content-type, and fix the error.

For more infomation please refer to https://prometheus.io/docs/instrumenting/exposition_formats/