PromQL query passing the interval '1vw' as a variable fails with error.
search cancel

PromQL query passing the interval '1vw' as a variable fails with error.

book

Article ID: 283115

calendar_today

Updated On:

Products

Insights DX OpenExplore Observability

Issue/Introduction

When PromQL query passes the interval '1vw' as a variable it fails with 'Error' when the converted WQL query succeeds.

Your query contained a syntax error (Query syntax error: rule stack: [program, expr, atom, application, exprList, expr, atom, application, exprList, expr, subQuery] line 1:61,1:63 (text='vw'): - no viable alternative at input '[1vw' )

Cause

Currently it is possible only to pass variables such as minute, hour and day (Example, 1m, 1h, 1d) but not the View Window length, '1vw'.

A feature request has been submitted to pass the View Window length (1vw) as a variable.

Resolution

Currently there is no workaround under PromQL, and the query must use defined values such as 1h, 1w, 1m,  as a variable value.

Additional Information