For example, I have 2 hosts, alert will be fired when CPU > 90%. I can open Prometheus UI & Alert Manager UI, and I see Alerts firing for the 2 hosts.
I use webhook as receiver, I want to get the alert count for CPU>90% to each hosts, how can I achieve it?
I consider if I can get the count value from somewhere, then I can append it into alert label, finally I can get the value from labels in webhook interface.
I have referred to Count alerts fired by prometheus, they use changes function, but it cannot cover if value doesn't change(let's say CPU keep 90%).