How to use ES API to implement prometheus increase function

Dear Elastic search experts,

I am using metricBeat to streaming data from prometheus to ES. I have a requirement to implement prometheus increase function.

The definition of increase function in prometheus:

The following example expression returns the number of HTTP requests as measured over the last 5 minutes, per time series in the range vector:
Http requests is a counter metric. Counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase

increase(http_requests_total{job="api-server"}[5m])

Refer to https://prometheus.io/docs/prometheus/latest/querying/functions/#increase

Thanks in advance!

Thanks,
Roy

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.