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