signoz icon indicating copy to clipboard operation
signoz copied to clipboard

Ability to type the duration expression in the global time dropdown

Open srikanthccv opened this issue 1 year ago • 1 comments

Is your feature request related to a problem?

The options in the global time range are limited. Often users want other time ranges such as 3 hours, 12 hours, 4 days etc. The only way to achieve this today is to use a custom time range which is very difficult. The user should be able to enter the duration expressions such as 3h, 4d and 1w, which should be interpreted as last 3 hours, last 4 days, and last 1 week respectively.

srikanthccv avatar Jan 04 '24 06:01 srikanthccv

Part of this is already done (any expression that uses numbers followed by m, h, d, w works). It would be wonderful to support any parsable expression such as 1 week, or 2 days. It's nice to have but not mandatory. Most users should be fine with compact inputs such as 1w, 2d, 4h etc..

srikanthccv avatar Jan 18 '24 19:01 srikanthccv

the changes for the same have been done and reviewed. will add the relevant test cases and close the same.

vikrantgupta25 avatar Jul 02 '24 20:07 vikrantgupta25