Expand description
prom supply the prometheus HTTP API Server compliance
Macros§
- Helper macro which try to evaluate the expression and return its results. If the evaluation fails, return a
PrometheusJsonResponse
early.
Structs§
- Matches π
- For [ValueType::Matrix] result type
- For [ValueType::Vector] result type
Enums§
- Variants corresponding to [ValueType]
Functions§
- do_
instant_ πquery Executes a single instant query and returns response - do_
range_ πquery Executes a single range query and returns response - Try to find the
__name__
matchers which op is notMatchOp::Equal
. - get_
all_ πcolumn_ names Get all tag column name of the given schema - get_
catalog_ πschema Tries to get catalog and schema from an optional db param. And retrieves them from QueryContext if they donβt present. - Retrieve labels name from record batches
- retrieve_
field_ πnames - Retrieve labels name from query result
- Try to parse and extract the name of referenced metric from the promql query.
- take_
metric_ πname Take metric name from the [VectorSelector]. It takes the name in the selector or removes the name matcher. - Update catalog and schema in QueryContext if necessary.
- Update the
__name__
matchers in expression into special value Returns the updated expression.