alertmanager icon indicating copy to clipboard operation
alertmanager copied to clipboard

How can I Send Individual Alert for Different Servers on Different usage Criteria

Open GopiPacha1996 opened this issue 6 years ago • 5 comments

Hi All,

I am Using Prometheus for my Production Servers,my question is is there any way that we can configure different alerts for individual server. for example I have 3 Servers ,Server1 cpu usage is 20% ,Server 2 cpu usage is 30% and Server 3 cpu usage is 90% .Now I need to get alert if server 1 is above 50% and server 2 cpu usage is above 90% and server 3 cpu usage is below 50%.is there anyway that i can create rules according my requirement for individual servers.Please help me out if anyone know how to do it. Thanks in advance...!

GopiPacha1996 avatar Aug 05 '20 12:08 GopiPacha1996

Thanks for your report. It looks as if this is actually a question about usage and not development.

It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.

roidelapluie avatar Aug 05 '20 12:08 roidelapluie

You might be looking for this pattern: https://www.robustperception.io/using-time-series-as-alert-thresholds

If you have further questions I suggest contacting the mailing list, as Github issues are only used for handling bugs in the Prometheus projects.

hoffie avatar Aug 05 '20 12:08 hoffie

is there any possibility that i can mention host name on the rules.yml file on prometheus?

GopiPacha1996 avatar Aug 05 '20 12:08 GopiPacha1996

Ok thanks for your reply

GopiPacha1996 avatar Aug 05 '20 12:08 GopiPacha1996

You might be looking for this pattern: https://www.robustperception.io/using-time-series-as-alert-thresholds

If you have further questions I suggest contacting the mailing list, as Github issues are only used for handling bugs in the Prometheus projects

Can you help me out how can i create different groups ??

GopiPacha1996 avatar Aug 06 '20 10:08 GopiPacha1996