Hi all.
I am a little bit confused about the use of the rate/irate functions
to track the network_{transmit,receive}_bytes metrics, exported
through the node_exporter.
According to the exporter, these metrics are defined as gauges but then
why I found only examples of PromQL queries using the rate/irate functions?
Should not be necessary to use (for example) delta/idelta?
Two of the most downloaded Grafana dashboards (for Prometheus/NodeExporter)
are using the rate functions too:
I also found another example on the following (closed) Github issue:
"[...] PromQL offers a number of functions and operators to deal with gauges.
In fact except for the handful of functions that are for use solely with counters
(such as rate), all functions can be sanely used with a gauge."
Anybody can explain to me why there's this exception or point me to the right documentation?
Thanks in advance!
Best regards,
Matteo