Correlation of mem used and swap used

Hi, there

Is it possible to create a metric event that encompasses both swap space usage and mem used for Linux systems?

I’m able to correlate both of them (swap used % and mem used %) in a single table but any help to convert them into a metric event would be of great help.

Is this something doable in Dynatrace?

Regards,

Srikanth

Hello SrikanthSamraj,

Can you send us the metric you’re using to check the Swap used %?

If you can correlate them inside a table, then putting them as metric events should be easy. You need to use an arithmetic function using the two metrics inside the metric selector of event metric settings.

Hi @jaume_reverte,

Here is it,

Query definition type: Metric selector

Metric selector:

builtin:host.mem.swap.used:filter(and(or(in(“dt.entity.host”,entitySelector(“type(host),tag(~”[Environment]xxx:xxx~“),tag(~”[Environment]xxx:xxx~“),tag(~“xxx:xxx~”),tag(~“xxx:xxx~”)”)))))

/

builtin:host.mem.swap.total:filter(and(or(in(“dt.entity.host”,entitySelector(“type(host),tag(~”[Environment]xxx:xxx~“),tag(~”[Environment]xxx:xxx~“),tag(~“xxx:xxx~”),tag(~“xxx:xxx~”)”)))))

*100

How do you correlate this with OOTB infrastructure problem “Memory saturation”?

Hi @SrikanthSamraj, did you manage to solve this one? It would be great if you share it with the Community :rocket:

Hi @GosiaMurawska, not yet.