Variables with string and variable content are not resolved in UI (Causing also issues with Grafana plugin)

Hey all,

im not pretty sure which is the right category, so i posted it here with tags to the other possible ones.

i have many variables which consist of queries with placeholders, e.g.:
max by (k8s_cluster, pod) (rate(container_cpu_cfs_throttled_periods_total{container="$host.vars.kubernetes_appname$"}[5m]))

The check is working without any issues and gets the resolved variables via commandline. But the UI shows:

Also if i try to use that variable for custom-var in the grafana plugin, i get the following result:

Here you can clearly see, that the variable wasnt resolved, but submitted as string.

What can i do to get the resolved variable here?

I use director to configure my hosts/services.

Give as much information as you can, e.g.

  • Director version (System - About): 1.8.0
  • Icinga Web 2 version and modules (System - About): 2.7.3
  • Icinga 2 version (icinga2 --version): 2.11.3
  • Operating System and version: Debian 10

Any help on that? Couldn’t find a solution yet

Can someone help me here pls?