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).

On Thu, May 28, 2020, 11:15 AM Pooja Chauhan <[email protected]> wrote:

> 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.
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/246d487c-a78e-4c66-b5b0-6bf0541f73f8%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/246d487c-a78e-4c66-b5b0-6bf0541f73f8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAKimyZtb3Tq7oVZ8otJQNfmKKzMgFX-WszHUBgDxqxv2fs78nQ%40mail.gmail.com.

Reply via email to