Thankyou for the response..
I think I didnt explain my question properly..
If pods in two different namespaces go down,then we need to send a alert as 
an appA is down..
Can I simply write expr as Kubepoddown_in_namespaceA and 
Kubepoddown_in_namespaceB ,and send alert message as "AppA is down"?
I just wrote the pseudocode of the expr but I want to know if this expr 
simply works with just AND operator..

On Wednesday, August 26, 2020 at 2:19:13 PM UTC-7 Christian Hoffmann wrote:

> Hi,
>
> On 8/26/20 11:00 PM, [email protected] wrote:
> > I want to send alert by  doing some correlation based upon multiple
> > alerts.For eg: if podA,podB,serviceA are all 100% down in two different
> > namespaces(namespace1,namespace2),then  I want to send alert like
> > ApplicationA is down. Is this possible? How to do the correlation
> > between different alerts?
>
> There is a special metric called ALERTS which exists for every active
> (pending or firing) alert. You could cross-reference this.
>
> However, there might be better ways which are more readable. I'm not
> sure either if it would be a good idea to use ALERTS in other alerts. :)
>
> In general this sounds like you could go with a simple up-based alert?
>
> If you need to distinguish based on namespace, you might be looking for
> the count or sum functions along with some by(namespace)?
>
> Kind regards,
> Christian
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/27ffac3c-f48e-4069-ab50-076005738877n%40googlegroups.com.

Reply via email to