Skip to content

VectorExprBuilder🔗

Constructor🔗

new VectorExprBuilder()

Methods🔗

build🔗

Builds the object.

build()

at🔗

The at (or @) modifier allows changing the evaluation time for individual instant and range vectors in a query.

The time supplied to the @ modifier is a unix timestamp.

https://prometheus.io/docs/prometheus/latest/querying/basics/#modifier

at(at: string)

label🔗

label(name: string, value: string)

labelMatchRegexp🔗

labelMatchRegexp(name: string, value: string)

labelNeq🔗

labelNeq(name: string, value: string)

labelNotMatchRegexp🔗

labelNotMatchRegexp(name: string, value: string)

labels🔗

Label selectors used to filter the timeseries.

labels(labels: cog.Builder<promql.LabelSelector>[])

metric🔗

Metric name.

metric(metric: string)

offset🔗

The offset modifier allows changing the time offset for individual instant and range vectors in a query.

https://prometheus.io/docs/prometheus/latest/querying/basics/#offset-modifier

offset(offset: string)

range🔗

Range of samples back from the current instant.

https://prometheus.io/docs/prometheus/latest/querying/basics/#range-vector-selectors

range(range: string)

See also🔗