I would like to create an Anomaly Detector rule to create a disk problem when two conditions being matched. It is important AND condition is done, not OR:
Idea would be checking 2 timeseries data to match those 2 conditions:
The query results in multiple metrics, but custom alerts only support single metric.
Do you have some idea in mind? Idea can be generating a new metric only when both conditions are applied. Something as “1” when both are matched, otherwise “0”.
We cannot use Disk Edge because only OR conditions are allowed and we would like to have AND condition.
Do you have some recommendation? Are you using Anomaly Detector for that?
You can achieve this with the Anomaly Detector, but the key here is that the rule must evaluate a single resulting timeseries. That’s why your current query is rejected: even though you apply an AND in the filter, the query still starts from two input metrics, and custom alerts expect one final signal. Try something like this bellow, this example I’m using 20GiB:
Also, one small correction: dt.host.disk.avail is available space (No?), so I would rename that field to something like disk_avail_bytes to avoid confusion.
Thank you for your fast feedback. “disk_used_percent[] > 80” is not working fine. It means, no matter if you select “<” or “>”, it is always considered as “true”.