14 Nov 2024 01:06 PM - last edited on 15 Nov 2024 07:48 AM by MaciejNeumann
Hi Community!.
I've a case where the disk D:\ of a bunch of Citrix Servers are being filled up quickly and sometimes when we're received the alert of disk usage it's too late and the services stop responding.
Then, we would like to setup an alert based on the % of disk usage in the last 2 hours. For example, if the disk usage increase in 40% in the last 2 hours trigger an alert.
They already have a similar alert configured in splunk, but I would like to do the same in Dynatrace.
See below the splunk alert currently in place:
index=perfmon host=jwppxdsh* sourcetype="Perfmon:FreeDiskSpace" instance="C:" OR instance="D:" counter="% Free Space" instance!=_* instance!=Hard* earliest=-2h
| stats min(Value) AS min,first(Value) AS first by host,instance
| eval Percent-Size-Change=first-min
| search Percent-Size-Change>=40
Solved! Go to Solution.
14 Nov 2024 02:21 PM
Hi,
You can use new Disk Edge alerting.
Instead 2 hours, set how many 10 seconds window should be under your threeshold.
Best regards
14 Nov 2024 03:59 PM
Thanks @AntonPineiro ... I'll try also with this approach.!
14 Nov 2024 02:32 PM
Hello @andresjavier,
you can achieve this result by creating custom metric selector:
builtin:host.disk.free:splitBy():sort(value(auto,descending)):timeshift(-2h)-builtin:host.disk.free:splitBy():sort(value(auto,descending))
and create custom alarm based on it:
you can also check new feature called “Disk Edge” which allows you to better evaluate disk performance.
Settings API - Anomaly detection for infrastructure- Disk Edge schema table - Dynatrace Docs
Best Regards
Michał
14 Nov 2024 03:57 PM
Thanks @michal_lewi .... I've modified you query a little bit to include just the 😧 Drive and it seems to be working... I'll configure the alerts and see how it goes!...