<p>I have a Kubernetes Pod which serves metrics for prometheus.</p>
<p>Once in a while I update the release and thus the pod gets restarted.</p>
<p>Prometheus safes the metrics but labels it according to the new pod name:</p>
<p><a href="https://i.stack.imgur.com/Df3Qj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Df3Qj.png" alt="enter image description here" /></a></p>
<p>this is by prometheus' design, so its ok.</p>
<p>but if I display this data with grafana, Im getting this (the pods ahve been redeployed twice):</p>
<p><a href="https://i.stack.imgur.com/njLh8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/njLh8.png" alt="enter image description here" /></a></p>
<p>So for example the metric &quot;Registered Users&quot; now has 3 different colors because the source from it comes from 3 diffferent pods</p>
<p>I have some options. Maybe disregard the pod name in prometheus, but I consider that bad practise because I dont want to lose data.</p>
<p>So I think I have to consolidate this in grafana. But how I can I tell Grafana that I want to merge all data with container-name <code>api-gateway-narkuma</code> and disregard the label <code>pods</code>?</p>

InsOp
<p>You can do something like</p>
<pre><code>max(users) without (instance, pod)
</code></pre>
