public List<Metric> list() {
        isFrozen = true;
        return Collections.unmodifiableList(metrics);
    }
Returns the size of the metrics covered. Note that this might also contain expired metrics.
metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/Metrics.java