Query metrics data using the Prometheus Query Language (PromQL).
<Broker-endpoint>:8000/timeseries
. Supported PromQL queries can be executed on this endpoint - see Supported PromQL Expressions for details.
Field | Type | Description |
---|---|---|
metric | STRING | Name of the Prometheus metric |
labels | JSON | Key-value pairs of Prometheus labels |
value | DOUBLE | The numeric value of the metric |
ts | TIMESTAMP | Timestamp in milliseconds since the Unix epoch |
REALTIME
PrometheusMessageDecoder
metric
, labels
, value
, ts
) must match exactly as specified.query
: The PromQL expression to evaluate.start
: Start timestamp in Unix epoch seconds.end
: End timestamp in Unix epoch seconds.step
: Query resolution in seconds (interval between data points).language
: Query language type (promql).table
: Pinot table name containing the metrics data.http_requests_total
=
, !=
, =~
(regex match), !~
(regex not match).
http_requests_total offset 10m
rate(http_requests_total[5m])
increase(http_requests_total[5m])
delta(http_requests_total[5m])
irate(http_requests_total[5m])
sum(http_requests_total)
avg(http_requests_total)
max(http_requests_total)
min(http_requests_total)
count(http_requests_total)
topk(1, http_requests_total)
bottomk(2, http_requests_total)
+
, -
, *
, /