title: how to monitor multiple instances of docker using Prometheus?
body: <p>I have service A which is a consumer from some queue.</p>
  <p>I can monitor and count any consumed message, easily with Prometheus :)</p>
  <pre><code>from prometheus_client import start_http_server, Counter
  
  COUNTER_IN_MSGS = Counter('msgs_consumed', 'count consumed messages')
  start_http_server(8000)
  while(queue not empty):
     A.consume(queue)
     COUNTER_IN_MSGS.inc()
  </code></pre>
  <p>But than, one day I decide to duplicate my consumer to 10 consumer which do the same {A1, A2..., A10}, by using the same code but running on 10 different dockers (containers on K8s in my case).</p>
  <p>How can I monitor them using Prometheus?? Should I change my code and some id to each consumer as label?</p>
  <p>What is the best practice to do in order to be able to sum them all together but also count on each by its own?</p>