Welcome to the club. https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/golang-nuts/LsOYrYc_Occ/LbjLAsL6BwAJ
On Friday, September 11, 2020 at 5:26:19 AM UTC-4 Anoop wrote: > HI, > > Anyone have any suggestions on this? > > > > Thanks & Regards, > > Anoop Mohan > > Mob# +91-7293009486 <+91%2072930%2009486> > E-mail : [email protected] > > > On Thu, Sep 10, 2020 at 1:05 PM Anoop Mohan <[email protected]> wrote: > >> Thanks Harkishen Singh for your suggestion. >> But, when we use *container_memory_usage_bytes *instead of >> *container_memory_working_**set_bytes *it is showing above 55%. >> Also referred some of the blogs which were also recommending to use >> *container_memory_working_**set_bytes *instead of * >> container_memory_usage_bytes * to get the accurate result. >> >> Ref: >> https://medium.com/faun/how-much-is-too-much-the-linux-oomkiller-and-used-memory-d32186f29c9d >> >> Thanks & Regards, >> >> Anoop Mohan >> >> Mob# +91-7293009486 <+91%2072930%2009486> >> E-mail : [email protected] >> >> >> On Wed, Sep 9, 2020 at 10:56 PM Harkishen Singh <[email protected]> >> wrote: >> >>> >>> You don't require to sum by a node when you are already querying with >>> exact labels since I expect the output to be one. >>> BTW, try with *container_memory_usage_bytes *instead of >>> *container_memory_working_set_bytes* >>> On Wednesday, September 9, 2020 at 7:28:49 PM UTC+5:30 Anoop wrote: >>> >>>> Hi, >>>> >>>> I am using Prometheus metric "container_memory_working_set_bytes" to >>>> display the memory usage graph in %. However, it is showing a higher value >>>> than what I can see when I use the linux command "free -h". >>>> >>>> The actual usage using linux command: >>>> [image: memory_linux.JPG] >>>> >>>> Based on this, it is actually taking less than 19%. >>>> >>>> *Now I am using below query to get the % value for memory usage:* >>>> sum by (node) >>>> (container_memory_working_set_bytes{id="/",node="test-instance-e1"}) / sum >>>> by (node) (machine_memory_bytes{node=" test-instance-e1"}) * 100 >>>> >>>> But, this is showing 41%, which is not correct. >>>> >>>> Can someone please guide me if there is any mistake in the Prometheus >>>> query or if I can usage some other metrics/query to get the current memory >>>> usage? >>>> >>>> Thank You, >>>> Anoop >>>> >>>> >>>> >>>> -- >>> 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/bb710ee9-6cec-432d-9ec0-5703720ea5b1n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/prometheus-users/bb710ee9-6cec-432d-9ec0-5703720ea5b1n%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/3546a8f3-f03c-4a82-8e2e-bd3586398279n%40googlegroups.com.

