Bug Report
What did you do?
Gave Prometheus a query like some_query[ 5s]. Note the space after the bracket.
What did you expect to see?
The query get's parsed to the same as some_query[5s] (without space).
What did you see instead? Under which circumstances?
Error executing query: invalid parameter 'query': parse error at char 12: missing unit character in duration
Environment
-
System information:
Linux 5.2.16-200.fc30.x86_64 x86_64
-
Prometheus version:
prometheus, version 2.12.0 (branch: master, revision: 8d3083e2563812da1c1125fafb20b9fe2469f4ba)