I am trying to create an alert in which, when the number of nodes increase or decrease I'll send an alert.
currently, I can get the node's count using this:
count(kube_node_info)
but I want to get the node's count for 5 mins and 1min so that I can do the subtraction and sent the alert. I don't know how to get the count of nodes for a 5m time frame.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…