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

Support rate for unwrapped expressions. #3048

Merged
merged 2 commits into from
Dec 8, 2020

Conversation

cyriltovena
Copy link
Contributor

This allows to compute bytes throughput if there were printed in a log line for instance.

sum by (device) (rate({app="network-dev"} |= "192.16.8.1" | json | unwrap recv_bytes [1m]))

Closes #3044

Signed-off-by: Cyril Tovena cyril.tovena@gmail.com

This allows to bytes throughput  if there were printed in a log line.

Examples :

```logql
sum by (device) (rate({app="network-dev"} |= "192.16.8.1" | json | unwrap recv_bytes [1m]))
```

Closes grafana#3044

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Copy link
Contributor

@kavirajk kavirajk 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
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

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

Very clean, LGTM

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
@cyriltovena cyriltovena merged commit 4e7a123 into grafana:master Dec 8, 2020
@RichardWright
Copy link

hi! when will this be released? I think I've been trying to do this and just stumbled over this pr.

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

Successfully merging this pull request may close these issues.

[Feature Request] rate_over_time for unwrapped ranges
4 participants