title: Sorting metrics by service?
body: <p>I need to setup monitoring for a large app that lives on an equally large K8S cluster. Because of how this app and the corresponding infrastructure were set up, i need to be able to monitor pods according to services (in the K8S).</p>
  
  <p>I would normally do something like : </p>
  
  <pre class="lang-sql prettyprint-override"><code>
  sum (rate (container_network_transmit_bytes_total[1m])) by (service)
  
  </code></pre>
  
  <p>But that doesn't return anything. Would anybody have a better method ?</p>