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

Bytes Log Aggregations #2077

Closed
cyriltovena opened this issue May 14, 2020 · 4 comments · Fixed by #2150
Closed

Bytes Log Aggregations #2077

cyriltovena opened this issue May 14, 2020 · 4 comments · Fixed by #2150
Assignees
Labels
component/loki keepalive An issue or PR that will be kept alive and never marked as stale. type/enhancement Something existing could be improved

Comments

@cyriltovena
Copy link
Contributor

cyriltovena commented May 14, 2020

Is your feature request related to a problem? Please describe.

It could be super interesting and very simple to add similar operation as rate and count_over_time but to count bytes in logs.

For example:

sum by (job) (brate({cluster="prod"}[1m]))

Would give you the total bytes/sec of logs per job.

or

sum by (job) (bytes_over_time({cluster="prod"}[1m]))

Will give you the total bytes over time per job.

This can be super interesting to weight your logs per stream.

Describe alternatives you've considered
We just don't add those operator but that's too bad there are very simple to add !

/cc @slim-bean @owen-d WDYT ? @tomwilkie

@cyriltovena cyriltovena added keepalive An issue or PR that will be kept alive and never marked as stale. type/enhancement Something existing could be improved component/loki labels May 14, 2020
@owen-d
Copy link
Member

owen-d commented May 14, 2020

I like the idea

@cyriltovena
Copy link
Contributor Author

brate or bytes_rate

@owen-d
Copy link
Member

owen-d commented May 15, 2020

berate 😆

@rfratto
Copy link
Member

rfratto commented May 19, 2020

I would personally go for bytes_rate since it's more descriptive of what the value is (or byte_rate, which I think might be more grammatically correct)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/loki keepalive An issue or PR that will be kept alive and never marked as stale. type/enhancement Something existing could be improved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants