Use variable in another variable

  • What Grafana version and what operating system are you using?
    Grafana v7.5.3

  • What are you trying to achieve?
    I have two “custom” variables -
    env - has following values: test,prod
    instanceidtest - someid
    instanceidprod - anotherid
    I want to template variable in another variable something like this - $instanceid${env}

  • Can you copy/paste the configuration(s) that you are having problems with?
    “targets”: [

          "alias": "cpu",
          "dimensions": {
            "InstanceId": "$instanceid${env}"

welcome to the :grafana: forum, @piccadil

It sounds like you want to use chained variables. Here are some useful starting points and example dashboards in our public sandbox :+1: