@Override
        public int compareTo(PrometheusEntry o) {
            int comparison = this.metricName.compareTo(o.metricName);
            return comparison != 0 ? comparison : this.dimensions.compareTo(o.dimensions);
        }
Produces a flat list of metric entries from a snapshot (which organizes metrics by dimensions)
container-core/src/main/java/com/yahoo/container/jdisc/state/StateHandler.java