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

        addMetric(metrics, SentinelMetrics.SENTINEL_RESTARTS.count());
        addMetric(metrics, SentinelMetrics.SENTINEL_TOTAL_RESTARTS.max());

        return metrics;
    }
Encapsulates vespa service metrics.

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