Negative values with Rate function used for CPU usage metric by node_exporter

945 views
Skip to first unread message

isha girdhar

unread,
Nov 9, 2017, 1:41:36 AM11/9/17
to Prometheus Users
Hi All,

We are using node exporter to pull system metrics into our Prometheus
and using this formula
100 - (avg by (instance) (irate(node_cpu{mode="idle"}[5m])) * 100) to calculate percentage of CPU used.
But we are getting negative values like -100000%

Any suggestions?

Brian Brazil

unread,
Nov 9, 2017, 2:11:19 AM11/9/17
to isha girdhar, Prometheus Users
It sounds like there's something very wrong with your kernel. I presume this is a VM, and if so with which provider?

--

isha girdhar

unread,
Nov 9, 2017, 2:43:03 AM11/9/17
to Prometheus Users
Yes its VM. Oracle BareMetal VM Standard.
Reply all
Reply to author
Forward
0 new messages