@Override
  public void counter(String name, String label, Supplier<Map<String, LongSupplier>> values) {
    new Collector() {
      @Override
      public List<MetricFamilySamples> collect() {
        List<MetricFamilySamples> result = new ArrayList<>();
        CounterMetricFamily family = new CounterMetricFamily(BASE + sanitizeMetricName(name), "", List.of(label));
        result.add(family);
        for (var entry : values.get().entrySet()) {
          family.addMetric(List.of(entry.getKey()), entry.getValue().getAsLong());
        }
        return result;
      }
    }.register(registry);
  }
Returns the full payload that we would send to push gateway for a poll right way.
planetiler-core/src/main/java/com/onthegomap/planetiler/stats/PrometheusStats.java