Converting value from process exporter to percent in grafana for better representation

9 views
Skip to first unread message

Pooja Chauhan

unread,
May 28, 2020, 12:15:22 PM5/28/20
to Prometheus Users
Hi ,
I am using process-exporter to monitor processes in my linux machine. The output of process exporter gives me value of memory as below :
 namedprocess_namegroup_memory_bytes{groupname="********",memtype="resident"} 1.56147712e+08
namedprocess_namegroup_memory_bytes{groupname="***********",memtype="swapped"} 0
namedprocess_namegroup_memory_bytes{groupname="***********",memtype="virtual"} 1.24284928e+09

Can you pls suggest how to convert these resident and virtaul memory values to percenatege for better representaion in grafana panel.I have also enabled percent nob in 
Visualization tab as in the screen shot attached but that give weird value too.Need help.


percent.PNG

Murali Krishna Kanagala

unread,
May 28, 2020, 12:23:37 PM5/28/20
to Pooja Chauhan, Prometheus Users
The metrics you have shared above are actual memory usage in bytes. To calculate the percentage we need to the memory capacity of the server you are monitoring. There should be another metric giving that value.
Then you can calculate the percent usage by 100*  (memory_used_bytes/Total memory bytes). 

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/246d487c-a78e-4c66-b5b0-6bf0541f73f8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages