Why node-exporter and CAdvisor metrics are showing different result?

63 views
Skip to first unread message

Anoop Mohan

unread,
Jul 18, 2023, 2:09:44 PM7/18/23
to Prometheus Users
  Hi,

I am using the below node-exporter metric to display network usage for external interface.
sum(rate(node_network_receive_bytes_total{instance=~"ip-10-XX-XXX-44.us-west-2.compute.internal",device="eth0"}[5m])) by (instance)
 
The output of the above metric showing the value around 22.5 MBytes
image.png

But, when I use the CAdvisor metric, it is showing a different result. 
sum (rate (container_network_receive_bytes_total{kubernetes_io_hostname=~"ip-10-XX-XXX-44.us-west-2.compute.internal",interface="eth0"}[5m])) by (kubernetes_io_hostname)

image.png

Any idea why these are showing different results? Do we need to consider something else to get an equivalent result?
Please advise.


Thanks & Regards,
Anoop
Reply all
Reply to author
Forward
0 new messages