After updating from version 9.3.6 to 9.5.1, Chained Variable is not working

  • What Grafana version and what operating system are you using?
    Grafana v9.5.1 RHEL 7.9

  • What are you trying to achieve?
    After specifying a variable to retrieve the desired measurement from Influxdb, I specified a chained variable to check the value corresponding to the tag of the desired measurement in the panel using the specified variable.

  • How are you trying to achieve it?
    First set the variable as shown in the screenshot below.


    I applied a regular expression to the query variable that calls the list of measurements, and created a variable named ‘measure’.

    *The results are partially hidden for security reasons.
    Then, I created a query variable in the form of a query that retrieves the tag key of the Measurement by combining the variable $measure and a regular expression, and named it ‘tag’.

  • What happened?
    When I do this, in version 9.3.6, the tag list of the measurement is retrieved without any problems after selecting the measurement, but after updating to version 9.5.1, the tag list is not retrieved. For more details, please refer to below screenshots.


    *v9.3.6

    *v9.5.1

  • What did you expect to happen?
    I think that in version 9.3.6, if the measurement name contains round brackets, a backslash is appended and uriencoded, but from version 9.5.1, uriencoding is performed without a backslash, resulting in the inability to retrieve the result value.
    I was able to verify this by performing an URI Decode on the actual log records. However, I regret that I cannot show the log records for security reasons.

  • Can you copy/paste the configuration(s) that you are having problems with?
    Yes, Here is a grafana.ini.
    [paths]
    data = /home/grafana
    plugins = /home/grafana/plugins
    cookie_secure = true
    signout_redirect_url = https://somesso.domain.com/cas/logout

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    I apologize that I cannot show you the logs due to security reasons. You may be able to find out by reproducing it.

  • Did you follow any online instructions? If so, what is the URL?
    I’m sorry, but I can’t provide you the URL as the system is offline.

Not sure if it is the same case, but I found a bug on Grafana 9.4 using variables:

I narrowed it down to be on array or variables with multiple values, if you need to have “All” options, on a brand-new variable and if “All” was not manually selected in the drop down, then the result will not be loading all values.

so, my work around was to create the variable, have the variable value and tags visible, enable multi select, include all checked, blank custom All values. And then exit the variables menu and in the dashboard use the drop down to check the select All option, then save the dashboard, and then I can edit the variable and hide the label and values from the dashboard.

It did not affect my previous created dashboards, but I had a hard time creating new dashboards with chained variables, until I noticed that the issue was with related the “Select All” or default “All”.

I Haven’t reported the bug and also, I have not tested 9.5 to see if is still there. :thinking: