dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Provide shortcut for TQL Eval

Open sunng87 opened this issue 5 months ago • 2 comments

Image

In some cases we use TQL Eval for promql query, it requires the time window tuple (start, end, step). Would be helpful if we have an widget to generate this tuple, for example "Last 5 minutes", "Last 1 hour". We can reuse the widget from our promql UI.

sunng87 avatar Jul 01 '25 18:07 sunng87

Image the PromQL query do same thing, both use PromQL for query and return with same response format like sql. user also need to familiar with PromQL to use TQL, so can user directly run the query in PromQL mode? add the widget in sql mode may make sql ui a bit complex

sunchanglong avatar Jul 03 '25 08:07 sunchanglong

Yes. Display it by default will be confusing. A better idea is to show this after user typing tql eval

sunng87 avatar Jul 03 '25 17:07 sunng87