Dashboard Panel Title Regex

  • What Grafana version and what operating system are you using?
    10.4.7 Alpine Docker Container

  • What are you trying to achieve?
    I want to use a regex to change the panel title that is sourced from a dashboard variable. I only want to change it for the panel title, not anywhere else.

We are trying to change the panel pitle of a repeated panel. The panel title is defined as a variable. Is there a way to do this.

For example, we have a variable ${my_var} which is a list of strings (['svr_alpha', 'svr_bravo', 'svr_charlie']). We want the repeated panels to have a title of alpha, bravo and charlie instead of svr_alpha, svr_bravo and svr_charlie.

I have looked at advanced-variable-format-options but that does not seem to allow me to perform a regex on the panel title.

Is there a way to change the panel title that uses a variable for the name?

you can change your query variable to use regex and extract parts out of it:

Then you can use:
${your_variable}

as the panel title
or even:
${your_variable} more info
etc.


1 Like