How to create external link with regex variable?

  • What Grafana version and what operating system are you using?
    v10.1.0 / Redhat

  • What are you trying to achieve?
    I would like to create a link to an URL using a variable shortened by regex.

  • How are you trying to achieve it?
    a) make a variable to get an information.
    b) Use regexp to shortened the value.
    c) Use the short variable to make an URL in link.

  • What happened?
    Grafana use the raw variable (long) to build the URL.

  • What did you expect to happen?
    I would like to have the URL with the small variable.

  • Can you copy/paste the configuration(s) that you are having problems with?
    Sure !
    My raw variable called “module” :

Let’s clean it up for getting a shorter value :

How i’m building the link :

Let’s clic on it :
2023-11-27_141218

This is not the good value :frowning: :

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

  • Did you follow any online instructions? If so, what is the URL?
    I haven’t find information about that.

Does anyone have an idea ?