Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uphow prometheus Metric to text #5208
Comments
This comment has been minimized.
This comment has been minimized.
|
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Feb 13, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
aixeshunter commentedFeb 13, 2019
•
edited
Hi, I want to output the metrics from file not http in telegraf, but I have no idea how to convert the data.
I get the metric with type
prometheus.Metric, how convert to byte/string?I find the
func MetricFamilyToText(out io.Writer, in *dto.MetricFamily) (written int, err error)inprometheus/common/expfmt/text_create.go, but how it works?