title: Divide two metrics in prometheus
body: <p>I have two metrics, scratched from telegraf.</p>
  
  <p>first metric</p>
  
  <p><code>vsphere_host_mem_active_average{esxhostname=~"esx1"}</code></p>
  
  <p>gives one value</p>
  
  <pre><code>vsphere_host_mem_active_average{clustername="BCH1",collector="telegraf",dcname="DC",esxhostname="esx1",host="vm01",hostname="hostname1",instance="localhost:9273",job="vSphere",moid="host-78563",source="esx1",type="vmware",vcenter="vmc"}    17763152
  </code></pre>
  
  <p>second one </p>
  
  <p><code>vsphere_vm_mem_granted_average{esxhostname=~"esx1"})</code></p>
  
  <p>gives several with different labels</p>
  
  <p>1.</p>
  
  <pre><code>vsphere_vm_mem_granted_average{clustername="BCH1",dcname="DC",esxhostname="esx1",guest="debian9_64",host="vm01",moid="vm-79139",source="vm01",uuid="42244f7b-abeb-92be-3e67-af19a9d8dfbd",vcenter="vmc",vmname="vm01"} 4.19418e+06
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>vsphere_vm_mem_granted_average{clustername="BCH1",dcname="DC",esxhostname="esx1",guest="debian9_64",host="vm01",moid="vm-79146",source="vm01",uuid="4224ed0c-f306-202c-fc99-35e48fe52370",vcenter="vmc",vmname="vm02"} 8.377904e+06
  </code></pre>
  
  <p>is that possible to get result of first value divided by second values for each of set of labels?</p>