I have a question on promql series multiplication. I have 2 time series, that have a different sampling (5minutes and 15 minutes). I need to bring them at the same resolution, multiply and sum
Something like:
WITH (
filter1= {testID=~"test2"},
metric0 = myMetric1{filter1},
metric1 = myMetric2{filter1}
)
sum_over_time(metric0[15m]*metric0[15m])&step=1h
This is not working, but output would be:
- bring metric1 and metric2 at the same resolution (15min)
- multiply sample by sample
- aggregate (sum) at 1h
Is this possible?
Thanks!