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

        addMetric(metrics, ControllerMetrics.ATHENZ_REQUEST_ERROR.count());
        addMetric(metrics, ControllerMetrics.ARCHIVE_BUCKET_COUNT.max());
        addMetric(metrics, ControllerMetrics.BILLING_TENANTS.max());

        addMetric(metrics, ControllerMetrics.DEPLOYMENT_JOBS_QUEUED, EnumSet.of(count, sum));
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_JOBS_ACTIVE, EnumSet.of(count, sum));
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_EXECUTOR_SIZE, EnumSet.of(max));
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_ABORT.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_DURATION.max());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_AVERAGE_DURATION.max());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_CONVERGENCE_FAILURE.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_NODE_ALLOCATION_FAILURE.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_DEPLOYMENT_FAILURE.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_ERROR.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_FAILING_UPGRADES.min());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_FAILURE_PERCENTAGE.max());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_NODE_COUNT_BY_OS_VERSION.max());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_OS_CHANGE_DURATION.max());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_QUOTA_EXCEEDED.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_START.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_SUCCESS.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_TEST_FAILURE.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_WARNINGS.max());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_ENDPOINT_CERTIFICATE_TIMEOUT.count());
        addMetric(metrics, ControllerMetrics.DEPLOYMENT_BROKEN_SYSTEM_VERSION.max());

        addMetric(metrics, ControllerMetrics.OPERATION_APPLICATION.max());
        addMetric(metrics, ControllerMetrics.OPERATION_CHANGEMANAGEMENT.max());
        addMetric(metrics, ControllerMetrics.OPERATION_CONFIGSERVER.max());
        addMetric(metrics, ControllerMetrics.OPERATION_CONTROLLER.max());
        addMetric(metrics, ControllerMetrics.OPERATION_FLAGS.max());
        addMetric(metrics, ControllerMetrics.OPERATION_OS.max());
        addMetric(metrics, ControllerMetrics.OPERATION_ROUTING.max());
        addMetric(metrics, ControllerMetrics.OPERATION_ZONE.max());

        addMetric(metrics, ControllerMetrics.REMAINING_ROTATIONS, EnumSet.of(min, max, last)); // TODO: Vespa 9: Remove last WAIT
        addMetric(metrics, ControllerMetrics.DNS_QUEUED_REQUESTS.max());
        addMetric(metrics, ControllerMetrics.ZMS_QUOTA_USAGE.max());
        addMetric(metrics, ControllerMetrics.COREDUMP_PROCESSED.count());
        addMetric(metrics, ControllerMetrics.AUTH0_EXCEPTIONS.count());
        addMetric(metrics, ControllerMetrics.BILLING_CREDITS.last());
        addMetric(metrics, ControllerMetrics.BILLING_CREDITS_GLOBAL.last());
        addMetric(metrics, ControllerMetrics.BILLING_EXCEPTIONS.count());
        addMetric(metrics, ControllerMetrics.BILLING_WEBHOOK_FAILURES.count());
        addMetric(metrics, ControllerMetrics.CERTIFICATE_POOL_AVAILABLE.max());
        addMetric(metrics, ControllerMetrics.CERTIFICATE_COUNT.max());
        addMetric(metrics, ControllerMetrics.CERTIFICATE_NAME_COUNT.max());
        addMetric(metrics, ControllerMetrics.CERTIFICATE_REQUEST_EXCEPTIONS.count());

        addMetric(metrics, ControllerMetrics.METERING_AGE_SECONDS.min());
        addMetric(metrics, ControllerMetrics.METERING_LAST_REPORTED.max());

        addMetric(metrics, ControllerMetrics.MAIL_SENT.count());
        addMetric(metrics, ControllerMetrics.MAIL_FAILED.count());
        addMetric(metrics, ControllerMetrics.MAIL_THROTTLED.count());

        addMetric(metrics, ControllerMetrics.HUBSPOT_EXCEPTIONS.count());
        addMetric(metrics, ControllerMetrics.HUBSPOT_LAST_SUCCESS.last());

        addMetric(metrics, ControllerMetrics.TENANT_CREATED_LAST_SUCCESS.last());

        addMetric(metrics, ControllerMetrics.ATLASSIAN_EXCEPTIONS.count());
        addMetric(metrics, ControllerMetrics.ATLASSIAN_LAST_SUCCESS.last());
        addMetric(metrics, ControllerMetrics.ATLASSIAN_ASSETS.max());
        addMetric(metrics, ControllerMetrics.ATLASSIAN_SERVICEDESK_CUSTOMERS.max());

        return metrics;
    }
Encapsulates vespa service metrics.

@author yngveaasheim
metrics/src/main/java/ai/vespa/metrics/set/InfrastructureMetricSet.java