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

Allow to aggregate binary operations. #1970

Merged
merged 2 commits into from
Apr 29, 2020

Conversation

cyriltovena
Copy link
Contributor

For example:
sum by (job) (count_over_time({namespace="tns"}[5m] |= "level=error") / count_over_time({namespace="tns"}[5m]))

would have failed previously.

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

For example:
	`sum by (job) (count_over_time({namespace="tns"}[5m] |= "level=error") / count_over_time({namespace="tns"}[5m]))`

would have failed previously.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
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.

Nice work and helpful refactor :)

@cyriltovena cyriltovena merged commit dc5cf8f into grafana:master Apr 29, 2020
cyriltovena added a commit to cyriltovena/loki that referenced this pull request Apr 29, 2020
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
cyriltovena added a commit that referenced this pull request Apr 29, 2020
* Fix a bad rebase between #1970 and #1965.

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

* fmt

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
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.

None yet

2 participants