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

Loki: Improve error message when step too low #9641

Merged
merged 6 commits into from Jun 7, 2023

Conversation

ivanahuckova
Copy link
Member

What this PR does / why we need it:

In grafana/grafana#69648 we are in Grafana introducing a step editor in Loki. Unfortunately, the error message when user sets too low step parameter is hard to understand, so I am proposing following change to make it more understandable and actionable.

Let me know what do you think.

@ivanahuckova ivanahuckova requested a review from a team as a code owner June 6, 2023 14:29
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.

LGTM

Copy link
Contributor

@JStickler JStickler left a comment

Choose a reason for hiding this comment

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

[docs team] I'm not sure if you can add formatting to error messages to call this out as the step parameter? (I'm guessing that you can't, since error messages are usually plain text...)

pkg/loghttp/query.go Outdated Show resolved Hide resolved
pkg/querier/queryrange/queryrangebase/query_range.go Outdated Show resolved Hide resolved
ivanahuckova and others added 3 commits June 7, 2023 11:43
Co-authored-by: J Stickler <julie.stickler@grafana.com>
Co-authored-by: J Stickler <julie.stickler@grafana.com>
@ivanahuckova
Copy link
Member Author

[docs team] I'm not sure if you can add formatting to error messages to call this out as the step parameter? (I'm guessing that you can't, since error messages are usually plain text...)

It is only a plain text.

@JStickler
Copy link
Contributor

It is only a plain text.

That's what I was expecting.

@ivanahuckova
Copy link
Member Author

@owen-d could you please merge this as I am not authorized to do so. 🙂

Copy link
Contributor

@JStickler JStickler left a comment

Choose a reason for hiding this comment

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

[docs team] LGTM

@JStickler JStickler merged commit eb7dae4 into main Jun 7, 2023
3 checks passed
@JStickler JStickler deleted the ivana/step-error-message branch June 7, 2023 15:32
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

3 participants