You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my dashboard I have variable $instance containing IP address of monitored host, for example 127.0.0.1
If I specify filter expression instance="$instance" then empty resultset is returned from the prometheus alert manager. In query inspector I can see that all dots in IP address escaped with two backslashes and than URI-encoded:
and of course alert manager is unable to find alerts with instance=127\\.0\\.0\\.1
Investigating the issue I found that fix #40 added new function interpolateQueryExpr calling dsSpecialRegexEscape with very string escape functionality. I have no idea why so many escapes are required, but seems those escape function is the root cause of my issue.
The text was updated successfully, but these errors were encountered:
Hey @DMOsipov,
Sorry for the (very) late response 😓
This issue should be now solved since few releases, if you're always using our plugin maybe you could give a try to the new v1.1.0 😉
I'm closing this but don't hesitate to open new issues.
Hi,
In my dashboard I have variable
$instance
containing IP address of monitored host, for example 127.0.0.1If I specify filter expression
instance="$instance"
then empty resultset is returned from the prometheus alert manager. In query inspector I can see that all dots in IP address escaped with two backslashes and than URI-encoded:and of course alert manager is unable to find alerts with
instance=127\\.0\\.0\\.1
Investigating the issue I found that fix #40 added new function
interpolateQueryExpr
callingdsSpecialRegexEscape
with very string escape functionality. I have no idea why so many escapes are required, but seems those escape function is the root cause of my issue.The text was updated successfully, but these errors were encountered: