The widget plots a chart from the result of a Prometheus query_range query. The PromQL query must return a Matrix type containing one or more time series.

Example query with placeholders:

sum by (status) (rate(http_requests_total[{{rateInterval}}]))

Query placeholders

The widget substitutes values calculated from the active time range:

PlaceholderDescription
{{range}}Duration of the selected time range
{{rateInterval}}Range window for the rate() and increase() functions
{{interval}}Interval between chart points, calculated automatically

The query step is selected based on the time range duration. The chart contains no more than 1100 points, and the minimum step is 30 seconds.

Configuration

NameRequiredDescriptionDefault value
URLYesPrometheus URL—
QueryYesPromQL query for the range chart—
LabelYesPrometheus label name used as the series name in the chart legend—
Default intervalNoInterval used when loading or refreshing the widget unless the user selects another interval in the widget panelLast hour
ThresholdNoHorizontal dashed line on the chart—
Minimum valueNoLower Y-axis boundary. Leave empty to scale automatically—
Maximum valueNoUpper Y-axis boundary. Leave empty to scale automatically—
Disable SSL verificationNoDisables verification of the Prometheus TLS/SSL certificatefalse

Authorization

Authorization is described in External services.