Just write metric_a - metric_b . See https://prometheus.io/docs/prometheus/latest/querying/operators/#arithmetic-binary-operators
On Mon, May 17, 2021 at 8:07 PM Sachin Patil <[email protected]> wrote: > Hi Team, > > is there any Prometheus alert rule function to get the difference between > 2 metrics > > > Thanks and regards, > Sachin P. > > > -- > 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/cd620fb5-f533-4ff3-a0d7-bb32c5f181b3n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/cd620fb5-f533-4ff3-a0d7-bb32c5f181b3n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Aliaksandr Valialkin, CTO VictoriaMetrics -- 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/CAPbKnmDgvk2ydeDT3CMpENzXnRCOQxSc8B-GGKS3Mg_N3HJg2Q%40mail.gmail.com.

