Hi,

On 8/27/20 2:19 AM, [email protected] wrote:
> 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"?
Yes, that's what I meant with the ALERTS metric. Have you tried it? You
can check those queries using the Prometheus UI (or API) before putting
them into alert rules.

For example, check
ALERTS{alertname="Kubepoddown_in_namespaceA",alertstate="firing"}.

> I just wrote the pseudocode of the expr but I want to know if this expr
> simply works with just AND operator..
My second suggestion still applies: It might be better or more
transparent if you could directly reference the relevant metrics.
However, to provide more specific guidance, we would need to know the
details of your existing two alerts.

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/1dbd7a6e-f277-a93c-0c23-f1747cbb018b%40hoffmann-christian.info.

Reply via email to