Re: Node Exporter

39 views
Skip to first unread message

Yasmine Mbarek

unread,
Jun 17, 2020, 10:44:19 AM6/17/20
to promethe...@googlegroups.com
Hello , 
I have a tiny problem with node exporter. If you can help me I will be very grateful .
So my node exporter implemented in my parc of machines , for some machine it works fine and returns all metrics values but in other machine it returns everything but "RAM Used" , the difference between the working machines and the others is that : on the machines that RAM used is working fine , the OS is redhat 7 
the rest of machines Redhat 6 everything is working but the RAM used returns NO DATA 
Is there any  explanation ??
Thank you .


Le mar. 16 juin 2020 à 16:55, Yasmine Mbarek <bm.ya...@gmail.com> a écrit :
Hello , 
I have a tiny problem with node exporter. If you can help me I will be very grateful .
So my node exporter implemented in my parc of machines , for some machine it works fine and returns all metrics values but in other machine it returns everything but "RAM Used" , the difference between the working machines and the others is that : on the machines that RAM used is working fine , the OS is redhat 7 
the rest of machines Redhat 6 everything is working but the RAM used returns NO DATA 
Is there any  explanation ??
Thank you .

--

أطيب التحيات  / Cordialement / Best regards,
----------------------
Yasmine MBAREK
              bm.ya...@gmail.com
Phone : +216 52 94 61 38 





--

أطيب التحيات  / Cordialement / Best regards,
----------------------
Yasmine MBAREK
              bm.ya...@gmail.com
Phone : +216 52 94 61 38 



Christian Hoffmann

unread,
Jun 17, 2020, 12:14:57 PM6/17/20
to Yasmine Mbarek, promethe...@googlegroups.com
Hi,

On 6/17/20 4:44 PM, Yasmine Mbarek wrote:
> I have a tiny problem with node exporter. If you can help me I will be
> very grateful .
> So my node exporter implemented in my parc of machines , for some
> machine it works fine and returns all metrics values but in other
> machine it returns everything but "RAM Used" , the difference between
> the working machines and the others is that : on the machines that RAM
> used is working fine , the OS is redhat 7 
> the rest of machines Redhat 6 everything is working but the RAM used
> returns NO DATA 
> Is there any  explanation ??

I assume you are using Grafana with some kind of node_exporter dashboard?

You would have to look into the actual queries to see what's causing this.

My guess: The dashboard most likely uses the MemAvailable metric (which
comes from /proc/meminfo). This is exposed by the Linux kernel, but only
after some specific version. RHEL6 does not expose it.

There are ways to calculate something similar for RHEL6 (the "free"
command line tool has some logic for this).

I think GitLab had a public Prometheus config with a recording rule,
maybe it was this one:

https://gitlab.com/gitlab-org/gitlab-foss/-/commit/e91c7469ad0be5f429548d4142ca93c17ec9e71e

You would have to set up such a recording rule and would have to modify
your dashboard accordingly.

As an alternative: Try talking your administrators into abandoning
RHEL6. It'll be out of support at the end of the year anyway, IIRC. :)

Kind regards,
Christian

Yasmine Mbarek

unread,
Jun 17, 2020, 12:42:14 PM6/17/20
to Prometheus Users
Thank you very much , i will study your solution and i hope it can be beneficial :)))

Ben Kochie

unread,
Jun 17, 2020, 2:31:41 PM6/17/20
to Christian Hoffmann, Yasmine Mbarek, Prometheus Users

--
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/6fbaa443-48f3-1bd0-962d-490e4cde4b80%40hoffmann-christian.info.

Yasmine Mbarek

unread,
Jun 21, 2020, 6:56:58 PM6/21/20
to Prometheus Users
Sorry but where to add all of these modifications ? the node_exporter file on my remote host is a binary file ?!
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages