prometheus aggregate series produced by an arithmetic operator
I'm trying to aggregate (sum) a new series that's from an arithmetic operator.
I have
seriesA * seriesB
which produces a new series that's multiplication of seriesA
and seriesB
but when I do
sum_over_time(seriesA * seriesB[1h])
it returns no data, tried putting parentheses between but still no data.
Is there a way to aggregate a new series from arithmetic operator of two series?
1 answer

Thanks to Michael Doubez's comment
subqueries did the trick:
sum_over_time((seriesA * seriesB)[1h:])
and on grafana the
$__range
also works, i.e.,sum_over_time((seriesA * seriesB)[$__range:])
How many English words
do you know?
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
how many words do you know
Powered by Examplum