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:
https://XXXXX/d/wdT3WdI7z/XXXXX-generic?var-hostname=k8s_XXX&var-service=generic_k8s_cpu_throttling&var-command=check_prometheus_query&var-query=max%20by%20(k8s_cluster,%20pod)%20(rate(container_cpu_cfs_throttled_periods_total%7Bcontainer%3D%22$host.vars.kubernetes_appname$%22%7D%5B5m%5D))&from=now-6h&to=now&orgId=1&viewPanel=2
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