grafana / lezer-logql

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

Grammar: Add `RateCounter` #21

Closed ivanahuckova closed 2 years ago

ivanahuckova commented 2 years ago

There is a new Range operation - rate_counter. This PR adds it into a grammar. https://grafana.com/docs/loki/latest/logql/metric_queries/#unwrapped-range-aggregations

ivanahuckova commented 2 years ago

Nice catch! Fixed in https://github.com/grafana/lezer-logql/pull/21/commits/82ae83ce151d3fc156596e99b21ec10e74bb38f0