Skip to main content


Dashboard and global variables are replaced automatically in the following elements:

  • URL for initial and update requests
  • Header parameters' values
  • Payload of the update request
  • JavaScript code

Three types of variables are thoroughly explained in our Grafana Crash Course.

JavaScript code

const formIcon = elements.find((element) => === "icon");
formIcon.value = "$IconVar";