10 Jun 2024 05:56 PM - edited 10 Jun 2024 05:59 PM
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
28 Aug 2024 08:46 AM
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.
28 Aug 2024 10:33 AM - edited 28 Aug 2024 10:35 AM
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"?