Hallo community,
we use JSON to import and generate icinga services. One of these generate “prometheus checks” based on promql. In the past it works well. Now there is new one which contains the Dollar sign.
In this case the parameter will be discarded. Inspect didn’t show it. The parameter is correctly transferred to icinga and I see it “with icinga dump”.
I know Dollar is related to icinga macros. I didn’t see a possibility to escape it probably.
Value at JSON:
“sum(appxXxinfo{exported_namespace=~”^xXx(-.)?$“,health_status!~“Healthy|Progressing”} or appxXxinfo{exported_namespace=~”^xXx(-.)?$“,sync_status!~“Synced”}) OR on() vector(0)”
Value at icinga dump:
sum(appxXxinfo{exported_namespace=~“^xXx(-.)?$“,health_status!~“Healthy|Progressing”} or appxXxinfo{exported_namespace=~”^xXx(-.)?$”,sync_status!~“Synced”}) OR on() vector(0)
My actual solution is to work with wrapper.
Have anyone a idea how to handle Dollar signs with parameter values?
Best regards
Klaus

