Given an expression such as "query=sum(rabbitmq_queue_messages{ tenant=~\"$tenant\"}) by (tenant, queue) \u003e $threshold: 1:238: parse error: unexpected character: '$'" Mimirtool is failing to parse the expression as per this error from the metrics-in-grafana.json file (ascii \u003e is >)
To Reproduce
Build a dashboard JSON containing a query which uses a dashboard variable in a comparison, then attempt to report on it with
mimirtool analyze dashboard *.json
Observe an error similar to the above in the output metrics-in-grafana.json file
Expected behavior
The query is parsed correctly
Environment
N/A
Additional Context
$ mimirtool version
Mimirtool, version 2.9.0 (branch: release-2.9, revision: 761114d8b)
go version: go1.20.5
platform: linux/amd64
Describe the bug
Given an expression such as "query=sum(rabbitmq_queue_messages{ tenant=~\"$tenant\"}) by (tenant, queue) \u003e $threshold: 1:238: parse error: unexpected character: '$'" Mimirtool is failing to parse the expression as per this error from the metrics-in-grafana.json file (ascii \u003e is
>
)To Reproduce
Build a dashboard JSON containing a query which uses a dashboard variable in a comparison, then attempt to report on it with
Observe an error similar to the above in the output metrics-in-grafana.json file
Expected behavior
The query is parsed correctly
Environment
N/A
Additional Context
$ mimirtool version Mimirtool, version 2.9.0 (branch: release-2.9, revision: 761114d8b) go version: go1.20.5 platform: linux/amd64