You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I convert the following Prometheus Query to Flux rate(some_metric_1[5m]) / rate(some_metric_2[5m])
In the above query, I am calculating the rate of 2 different metrics and dividing them. I am able to calculate the rate of individual metrics using the aggregate.rate() function. But I'm not able to combine two metrics and perform arithmetic operations on them.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
How can I convert the following Prometheus Query to Flux
rate(some_metric_1[5m]) / rate(some_metric_2[5m])
In the above query, I am calculating the rate of 2 different metrics and dividing them. I am able to calculate the rate of individual metrics using the
aggregate.rate()
function. But I'm not able to combine two metrics and perform arithmetic operations on them.Thanks 😃
Beta Was this translation helpful? Give feedback.
All reactions