grafana / lezer-logql

LogQL lezer grammar
Apache License 2.0
3 stars 4 forks source link

Grammar: Add Vector(scalar) #22

Closed liguozhong closed 1 year ago

liguozhong commented 1 year ago

Grammar: Add Vector(scalar)

fix vector(5) error.

doc: https://grafana.com/docs/loki/latest/logql/metric_queries/#functions LogQL supports a set of built-in functions. vector(s scalar): returns the scalar s as a vector with no labels. This behaves identically to the Prometheus vector() function. vector is mainly used to return a value for a series that would otherwise return nothing; this can be useful when using LogQL to define an alert.

grafana pr: https://github.com/grafana/grafana/pull/63994 error snapshot. image

liguozhong commented 1 year ago

@svennergr @ivanahuckova help review please.thanks

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.