I donβt have a complete solution, but theoretically you should be able to filter events related to the processor through the where function and unconditionally set the state to βokβ with with as follows:
(streams (where (service #"cpu") (with :state "ok" index)))
On the other hand, relying on the average load is not a good idea, since the average load can also mean that a large number of IO processes are expected .
Instead of disabling CPU warnings, you can only alert if the CPU is not in the OK state for more than X time units. Even better, a warning about a higher level metric that represents a problem affecting the client, such as delayed response, HTTP status codes, error levels, etc. After all, if the CPU is high, but there is no effect on the system, the warning is likely to be noise.
source share