private static Set<Metric> getDocprocMetrics() {
        Set<Metric> metrics = new LinkedHashSet<>();

        // per chain
        metrics.add(new Metric("documents_processed.rate"));

        addMetric(metrics, ContainerMetrics.DOCPROC_PROC_TIME, EnumSet.of(sum, count, max));
        addMetric(metrics, ContainerMetrics.DOCPROC_DOCUMENTS, EnumSet.of(sum, count, max, min));

        return metrics;
    }
Encapsulates vespa service metrics.

@author gjoranv
@author yngve
metrics/src/main/java/ai/vespa/metrics/set/Vespa9VespaMetricSet.java