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 upMetric type in prompb #5351
Comments
This comment has been minimized.
This comment has been minimized.
|
After chatting on #prometheus, seems like the current way is to call the target metadata api (https://github.com/prometheus/prometheus/blob/master/docs/querying/api.md#querying-target-metadata) to get the information about the metric. |
This comment has been minimized.
This comment has been minimized.
|
That'd be quite involved, as we'd need to store it in the TSDB first and this isn't time series data. I'd suggest working with the Prometheus text format directly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pryz commentedMar 13, 2019
•
edited
Would it be possible to add the type of the metrics in the prompb proto ? Right now there is no way for a remote service to know if the forwarded metrics are counters or gauges for instance.
I was looking at implementing a remote storage (write only currently but will consider a read handler if the write one is working as expected) to forward Prometheus metrics to statsd-like systems. However, since the prompb proto is not exposing the type of the metrics, it makes the translating job quite complicated.
The best would be the have the TYPE and HELP in prompb (https://godoc.org/github.com/prometheus/client_model/go#MetricFamily).
Thanks !