Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grammar: Add RateCounter #21

Merged
merged 2 commits into from
Sep 28, 2022
Merged

Grammar: Add RateCounter #21

merged 2 commits into from
Sep 28, 2022

Conversation

ivanahuckova
Copy link
Member

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

@@ -8,7 +8,7 @@
<script type="importmap">
{
"imports": {
"@grafana/lezer-logql": "https://cdn.jsdelivr.net/npm/@grafana/lezer-logql@0.0.18/index.es.js",
"@grafana/lezer-logql": "https://cdn.jsdelivr.net/npm/@grafana/lezer-logql@0.1.1/index.es.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this 🤩

I wondered if we should just use @latest here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good point. Updated in 82ae83c.

Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, sorry. I think the package-lock.json needs an update as well.

@ivanahuckova
Copy link
Member Author

Nice catch! Fixed in 82ae83c

Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants