title: How to use Metric value in Alias?
body: <p>I created a new Graph in Grafana that takes data from OpenTSDB.</p>
  
  <p><a href="https://i.stack.imgur.com/nr2hA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nr2hA.png" alt="Add Panel Graph"></a></p>
  
  <p>The <strong>Alias</strong> field has the following value: <code>Label $metric $tag_host</code>.</p>
  
  <ul>
  <li><p>when it is interpreted, it looks like this:</p>
  
  <ul>
  <li><code>Label $metric myhost1</code></li>
  <li>...</li>
  <li><code>Label $metric myhostn</code></li>
  </ul></li>
  <li><p>but I want to look like this:</p>
  
  <ul>
  <li><code>Label xyz myhost1</code></li>
  <li>...</li>
  <li><code>Label xyz myhostn</code>
  where <code>xyz</code> is the value of the <strong>Metric</strong> field.</li>
  </ul></li>
  </ul>
  
  <p>So, for a key (E.g.: <code>host</code>) in <strong>Tags</strong>, I can use <code>$tag_&lt;key&gt;</code> (E.g.: <code>$tag_host</code>) in <strong>Alias</strong>.</p>
  
  <p>I want to achieve the same behavior for the hard-coded <strong>Metric</strong> value (E.g.: <code>xyz</code>), such that if someone wants to change the Metric value in the future from <code>xyz</code> to <code>abc</code>, the Alias should be updated automatically.</p>
  
  <p>I tried to use:</p>
  
  <ul>
  <li><code>$metric</code></li>
  <li><code>$Metric</code></li>
  <li><code>$tag_metric</code></li>
  </ul>
  
  <p>but they didn't work.</p>
  
  <p><a href="https://i.stack.imgur.com/1eXOD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1eXOD.png" alt="Grafana Metrics"></a></p>
  
  <p>Is it possible to use the <strong>Metric</strong> value in <strong>Alias</strong> without hard-coding in Alias (the hard-coding from Metric is enough)?</p>