How can Create and Configure different Rules for Different Servers

13 views
Skip to first unread message

Pachha Gopi

unread,
Aug 6, 2020, 5:51:06 AM8/6/20
to Prometheus Users
Hi ,

Can anyone help me out how can i create Different rules.yml for different servers.My requirement is different server is different alerting thresholds ,so how can i configure either rules.yml or prometheus.yml file to get alerts based on my requirement.
Let me explain with  below scenario:

For example I have 3 Servers ,Server1 cpu usage is 20% ,Server2 cpu usage is 30% and Server3 cpu usage is 90% .Now I need to get alert if Server1 is above CPU is 50% and Server2  CPU is above 90% and Server3 CPU usage is below 50%.How i can create rules according my requirement for individual servers.Please help me out if anyone know how to do it.

Brian Candler

unread,
Aug 6, 2020, 4:01:45 PM8/6/20
to Prometheus Users
Have a read of this post for the recommended approach:

Reply all
Reply to author
Forward
0 new messages