Promethus metrics caluclated in MB or Bytes or KB

358 views
Skip to first unread message

Bharathwaj Shankar

unread,
Nov 27, 2020, 1:18:01 AM11/27/20
to Prometheus Users
I can see various metrics in promethus,basically in which unit it is calculated?

Christian Hoffmann

unread,
Nov 27, 2020, 2:48:04 AM11/27/20
to Bharathwaj Shankar, Prometheus Users
Hi,

On 11/27/20 7:18 AM, Bharathwaj Shankar wrote:
> I can see various metrics in promethus,basically in which unit it is
> calculated?

As per the official documentations, all values should be in base units.
That would be Bytes:
https://prometheus.io/docs/practices/naming/#base-units

This should usually be documented using the _bytes suffix in the metric
names.

However, technically Prometheus does not have a concept of units.
Prometheus just stores the numbers. It's up to the exporters to provide
sane values and up to the visualizations (e.g. Grafana dashboards) and
rules to make sense of it.

Kind regards,
Christian
Reply all
Reply to author
Forward
0 new messages