Thanks. How do we reuse the above query to generate alert only if it is between 80 to 89% . Where do i can specify the threshold in above filter condition.
I’m not sure to be honest if it’s possible to do that because I think you can only configure a threshold using one value. Defining a threshold between two values could be a good product idea to create.
I can think of creating the same metric event twice with different names. In once defining the threshold above and the other one below. But I’m not sure if it’ll work. You can test it.
builtin:host.disk.free:filter(and(or(in(“dt.entity.disk”,entitySelector(“type(disk),entityName.equals(~”/obidata~“)”))),
or(in(“dt.entity.disk”,entitySelector(“type(disk),entityName.equals(~”/opt~“)”)))))
:splitBy(“dt.entity.host”,“dt.entity.disk”):avg:sort(value(avg,descending)) - This is not working.
I tried. When i do separately data is coming and when i put in single query output is empty
Thanks. I did try it and see it is not working. i modifed to 50% as we have some disks avalaible less than 50% and but it is not working. How to make sure this is working before we enable the metric
In Alert Preview section you can see if the configured threshold will reach the in the last day, 3 days or 7 days depending on the dimension (host and disk) selected.
You can play with this threshold in this section to preview if the alarm will trigger according the set threshold: