Template Variables storing regex

  • What Grafana version and what operating system are you using?
    Grafana version: v8.5.0

  • What are you trying to achieve?
    Trying to create a dashboard to monitor several apis who are logging to elastic

  • How are you trying to achieve it?
    Apis can be differentiated using their request endpoint i would like to have a template variable which can store a regex to match these endpoints and then use the variable in the lucene query for different panels

  • What happened?
    Did not see any data with template variable, without template variable and direct regex in query it works

  • What did you expect to happen?
    Data should be populated with variable storing regex

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?