I have to create a visualization from Prometheus metrics. I have a counter metrics http_request_counter
, I wanted to show a summary of total requests served in a day. This is how I did when we had graphite as our data source.
alias(summarize(sumSeries(consolidateBy(nonNegativeDerivative(http_request_counter.count), 'sum')), '1d', 'sum', false), 'TPS per day')
I saw few documentations and tried with increase(http_requests_total[24h])
which plotted the graph with t-24h
values.
Can someone help me find an equivalent of summarize
function in prometheus please?