# Davis Anomaly Detector -  “used/available (GiB) Disk space” in the problem without creating a new one

**URL:** <https://community.dynatrace.com/t/davis-anomaly-detector-used-available-gib-disk-space-in-the-problem-without-creating-a-new-one/54090>\
**Category:** Alerting\
**Tags:** problem-detection, problem-notification, davis, anomaly-detection, problems\
**Created:** [November 14, 2025, 11:39am UTC](https://community.dynatrace.com/t/davis-anomaly-detector-used-available-gib-disk-space-in-the-problem-without-creating-a-new-one/54090 "2025-11-14T11:39:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patryk\_ozimek2](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@patryk\_ozimek2](https://community.dynatrace.com/u/patryk_ozimek2)\
**Post date:** [November 14, 2025, 11:39am UTC](https://community.dynatrace.com/t/davis-anomaly-detector-used-available-gib-disk-space-in-the-problem-without-creating-a-new-one/54090/1 "2025-11-14T11:39:38Z")

</div>

**Goal**

I want a Davis anomaly detector for _disk usage %_ (e.g., alert when dt.host.disk.used.percent is high), **and** I’d like the problem to also show **used** and **available** capacity (in GiB) for the affected disk.

**The issue**

When I attach “used/avail” as scalar context via a join in the detector DQL, Dynatrace starts opening **new problems** whenever those values change (e.g., ±1 GiB) — even though it’s the same host/disk and the same underlying breach.

Here’s the DQL I ended up with (simplified):

timeseries {  
value = avg(dt.host.disk.used.percent)  
}, by:{ `dt.entity.host_group`, `dt.entity.host`, `dt.entity.disk`, dt.cost.costcenter }

| fieldsAdd  
host\_group\_name = entityName(`dt.entity.host_group`),  
host\_name = entityName(`dt.entity.host`),  
disk\_name = entityName(`dt.entity.disk`)  
| filter disk\_name != “/var/log/audit”

| join [  
timeseries {  
used\_ts = avg(dt.host.disk.used),  
avail\_ts = avg(dt.host.disk.avail)  
}, by:{ `dt.entity.disk` }  
| fields  
`dt.entity.disk`,  
used\_last\_bytes = arrayLast(arrayRemoveNulls(used\_ts)),  
avail\_last\_bytes = arrayLast(arrayRemoveNulls(avail\_ts))  
],  
on:{ `dt.entity.disk` }, kind: leftOuter

| fieldsAdd  
used\_last\_GiB = right.used\_last\_bytes / 1073741824.0,  
avail\_last\_GiB = right.avail\_last\_bytes / 1073741824.0

| fieldsAdd used\_GiB = round(used\_last\_GiB, decimals:0),  
avail\_GiB = round(avail\_last\_GiB, decimals:0)  
| fieldsAdd total\_GiB = used\_GiB + avail\_GiB

| fieldsRemove right.used\_last\_bytes, right.avail\_last\_bytes, used\_last\_GiB, avail\_last\_GiB

**Observed behavior**

Every time used\_GB / avail\_GB changes, the detector starts a **new** problem (instead of keeping one open), which creates noise.

Is there a supported/best-practice way to **include dynamic context (used/avail)** in the problem **without** causing Davis to treat it like a “new series” and open a new problem?

---

<div class="post-metadata">

**Author:** ![O11y\_Noob](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@O11y\_Noob](https://community.dynatrace.com/u/O11y_Noob)\
**Post date:** [November 17, 2025, 5:33pm UTC](https://community.dynatrace.com/t/davis-anomaly-detector-used-available-gib-disk-space-in-the-problem-without-creating-a-new-one/54090/2 "2025-11-17T17:33:20Z")

</div>

are you using {dims:total\_GiB} in your problem ? then what i understood is anything in {dims:xxx} changes when used under the problem , DT considers it as change and closes and opens a new prob from this thread that i am facing , try with {fields: as suggested , but it dint help in my case}

[alerting site wise - Dynatrace Community](https://community.dynatrace.com/topic/289655)

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [November 18, 2025, 11:13pm UTC](https://community.dynatrace.com/t/davis-anomaly-detector-used-available-gib-disk-space-in-the-problem-without-creating-a-new-one/54090/3 "2025-11-18T23:13:53Z")

</div>

[@patryk\_ozimek2](https://community.dynatrace.com/user/49174)&nbsp;I’ve come across this limitation before and this is a expected behavior if you include dimensions that change . Here is an idea that I raised for the same

[https://community.dynatrace.com/t5/Product-ideas/Include-variable-dimensions-in-event-description-for-anomaly/idi-p/279184](https://community.dynatrace.com/post/279184)
