Alert Query

23 views
Skip to first unread message

sri L

unread,
Feb 19, 2024, 11:19:19 PM2/19/24
to Prometheus Users
Hi all,

I am looking for a way to send out an alert with top 3 cpu/memory utilization processes when total cpu/memory utilization goes above 80% for a node.

I can create an alert using node metrics to send notification when cpu utilization is above 80% but unable to find a way to include top 3 process details in the same alert

Kindly suggest there is any method to achieve this

Alexander Wilke

unread,
Feb 20, 2024, 12:24:54 AM2/20/24
to lrans...@gmail.com, promethe...@googlegroups.com

Did you try with

topk(3,metrics) ?


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f88f6b04-546c-4a8b-ba67-98a1928d638dn%40googlegroups.com.

sri L

unread,
Feb 20, 2024, 2:34:42 AM2/20/24
to Alexander Wilke, promethe...@googlegroups.com
Yes, but top 3 gives only top3 processes with high utilization but unable to get on how to link this to node high cpu utilization alert to send top3 process information only when node utilization goes beyond 80. 
Reply all
Reply to author
Forward
0 new messages