SignalFX detector data().count() based on condition

669 Views Asked by At

Is it possible to implement count() MTS based on condition?

For instance: We need to monitor the amount of time RDS CPU picks the point of 95% for the last 3 days.

A = data('CPU_Utilization').count(...when point > 95%). 
detector(when(A > {number_of_times_breached}, lasting='3d')).publish(...)

Update.

Solution was found by my colleague:

A = data('CPU_Utilization').above({condition_value}, inclusive=True).count(...)
1

There are 1 best solutions below

4
On

You can use eval() with boolean result inside count() in your SPL query.

Something like

| <your search> | stats count(eval(point>0.95))