Skip to content

UI: Improve auto adjustment stats view error on hits chart #1128

@yuriydzobak

Description

@yuriydzobak

Describe the bug

Hi,
When you have a long query and switch the hits chart to stats view, the error message does not resize the error window.

Propose/idea:
If it is possible, of course, instead of displaying the entire query in the error, simply post a message indicating that you need to adjust the query and add stats in the format

`missing | stats ...` at the end of the query reach out https://docs.victoriametrics.com/victorialogs/logsql/#stats-pipe

Currently, for *, it shows a large error message, that response from backend error, with system information:

{
  "status": "error",
  "errorType": "422",
  "error": "missing `| stats ...` pipe in the query [_time:[2026-02-24T10:45:18.750000000Z,2026-02-24T10:50:21.874999999Z]]"
}
Image

This approach would provide a more informative in UI
Thank you.

To Reproduce

  1. Open play-vmlogs by this link
  2. switch to stats view
  3. the windows of error is wide and don't adapted for page resolution

Image

Version

1.46.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingweb-uiIssues related to the user interface: layout, styling, usability, or UI-specific bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions