METRIC TYPE

40 views
Skip to first unread message

Shrikant Keni

unread,
Dec 3, 2020, 11:00:48 PM12/3/20
to Prometheus Users
Hi,

How to identify the value received for the matrics at external application from the remote_write is a cumulative or gauge  ?


Regards,
Shrikant Keni

Shrikant Keni

unread,
Dec 11, 2020, 12:44:56 AM12/11/20
to Prometheus Users

can some one please help in this.

Bjoern Rabenstein

unread,
Dec 22, 2020, 12:46:37 PM12/22/20
to Shrikant Keni, Prometheus Users
Your question is not easy to answer because you are using
"cumulative", which doesn't exist as a term in the Prometheus
ecosystem. Perhaps it maps to what Prometheus calls a counter?

I recommend to have a look at the explanation of Prometheus metric
types:
https://prometheus.io/docs/concepts/metric_types/#metric-types

Those types are exposed by the /metrics endpoint, so you can look at
them there. They are ingested by the Prometheus server only in a
limited way, which is not straightforward to use, but Grafana, as an
example, is doing that for you, so you can inspect the type if
exploring Prometheus metrics from within Grafana.

--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in

Bjoern Rabenstein

unread,
Dec 22, 2020, 1:10:03 PM12/22/20
to Shrikant Keni, Prometheus Users
Shrikant rephrased his question and sent it to me by mail directly.

I quote it here to have it back on the list, where the whole community
can benefit from it:

"I mean is there any way to identify the value received from remote
write is counter, gauge , histogram or summary."

The answer is that metadata like the metric type wasn't propagated via
remote write at all. This will change with the upcoming release of
Prometheus, see https://github.com/prometheus/prometheus/pull/6815 for
the PR implementing the new feature.
Reply all
Reply to author
Forward
0 new messages