title: Set Prometheus Counter value to 0
body: <p>I want to set Prometheus Counter value to 0 when the server restarts in a manner similar to,</p>
  <pre><code>private static final Gauge SERVER_UP = Gauge.build(MetricConstants.SERVER_UP, &quot;Server status&quot;).labelNames(labels).register();
  Gauge gauge = (Gauge) map.get(SERVER_UP);
  gauge.labels(serviceName, serviceType).set(0);
  </code></pre>
  <p>How can this be done with Counter in Prometheus?</p>