Prometheus Metrics

Query Prometheus metrics with time range

Execute a PromQL range query against the default Prometheus instance for time-series data.

get/api/v1/prometheus/query_range

Request

  • Base URL
    http://localhost:8080
  • Auth
    API key in header Authorization

Query parameters

querystring required

PromQL query

startstring

Start timestamp (Unix timestamp or RFC3339)

endstring

End timestamp (Unix timestamp or RFC3339, defaults to now)

stepstring

Step duration (e.g., '15s', '1m', '5m', defaults to '1m')

Response

Prometheus range query result

object required

Changes

No recorded changes to this operation across all 1 revision of this API.