Thank you, It works perfectly!
On Fri, Apr 30, 2021 at 7:54 AM Laurent C. <[email protected]> wrote:
>
> On 29/04/2021 15:14, 'Gabor Kiss' via Prometheus Users wrote:
> > Hello guys!
> >
> Hi,
>
> > I have a few servers with high memory usage and I want filtering them
> > (In the example, server means string in that case). The hostname may
> > vary: bob-server-15.mydomain , server-alice.mydomain
> > 15server.mydomain etc.
> >
> > That was my first think, but it's wrong:
> >
> > node_memory_MemAvailable_bytes{instance !~ ".server."} /
> > node_memory_MemTotal_bytes{instance !~ ".server."} * 100 < 15
> >
> I think this should do it:
>
> node_memory_MemAvailable_bytes{instance !~ ".+server.+"} /
> node_memory_MemTotal_bytes{instance !~ ".+server.+"} * 100 < 15
>
>
>
--
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/CAAUkTuUwrn7%3D2XeVG%3D30wN4zxnNr3kRycx4neVjGwsUT5rqTQQ%40mail.gmail.com.