Skip to content

Preserve query when switching to Classic query #332

@Loori-R

Description

@Loori-R

Description:

When switching to or from Classic query in a variable, the current query input gets cleared.
It would be helpful if Grafana preserved the previous expression - especially since Classic query supports equivalent formats used in other types.


Example:

The following Label values config:

Image

is equivalent to this Classic query expression:

label_values(flag{cluster="sandbox"}, job)

Why it matters

  • Prevents accidental loss of query data.
  • Makes switching query types seamless.
  • Saves users from retyping queries manually.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions