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

PromQL: Support trailing commas in grouping opts #6480

Merged
merged 4 commits into from
Dec 20, 2019

Conversation

slrtbtfs
Copy link
Contributor

Fixes #6470

Signed-off-by: Tobias Guggenmos tguggenm@redhat.com

@brian-brazil
Copy link
Contributor

Documentation somewhere should also change with this.

Fixes prometheus#6470

Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>
Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>
@slrtbtfs
Copy link
Contributor Author

I've added documentation about trailing commas.

Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>
Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>
all other labels are preserved the output. `by` does the opposite and drops
labels that are not listed in the `by` clause, even if their label values are
identical between all elements of the vector.

`parameter` is only required for `count_values`, `quantile`, `topk` and
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes it seem as though it's an option for the others. I'd say used rather than required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I personally find "required" more clear than "used" here.

Also this wording was not introduced by this PR.

@brian-brazil brian-brazil merged commit 1e0cd28 into prometheus:master Dec 20, 2019
@brian-brazil
Copy link
Contributor

Thanks!

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.

PromQL: Consider supporting trailing commas in grouping opts
2 participants