Is there a way to convert the output of the rate
function in Prometheus to a whole number?
I'm trying to get the total number of pod restarts over a specified timeframe and although this query produces output, I get the result in decimals which isn't what I need.
rate(kube_pod_container_status_restarts_total{namespace=~"jenkins"}[10h]) * 60 * 5 > 0
What I get back is 0.21761280931586605
but I'd rather get a whole number.
I'm just not sure what function to use.