title: grafana - divide series with wildcards
body: <p>I'm trying to build a list of percentages in grafana, but am having trouble getting <code>divideSeries</code>+wildcards to work right.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/42714008/grafana-dividing-2-series">Grafana dividing 2 series</a> which seemed like what I wanted, but unfortunately there's no <code>mapSeries</code> function in my grafana instance (version 4.6.0-1).</p>
  
  <p>This is what I've got, but instead of specifying the ID "1234", I want to use a wildcard, and have each ID grouped together.</p>
  
  <pre><code>divideSeries(stats.dhcp.pools.1234.cur,stats.dhcp.pools.1234.max)
  </code></pre>
  
  <p>Logically, I tried: <code>divideSeries(stats.dhcp.pools.*.cur,stats.dhcp.pools.*.max)</code> -- but that does not work. I tried mucking around with <code>asPercent</code>, but it has the same limits as <code>divideSeries</code> does.</p>
  
  <p>I think <code>applyByNode</code> is what I want, but I can't seem to translate the example into something that actually works.</p>