diff options
author | yngveaasheim <yngve@yahooinc.com> | 2023-08-08 13:24:32 +0200 |
---|---|---|
committer | yngveaasheim <yngve@yahooinc.com> | 2023-08-08 13:24:32 +0200 |
commit | c4085a71a28914e92643d1d51d0329229a3bf1a9 (patch) | |
tree | a637041a922964a3d7daf5c216b4a184331dfc33 /controller-server | |
parent | 217271fe10d5405d0a08adbb45b6a36cb4014f30 (diff) |
Add metrics needed to stop using the .last suffix
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ResourceMeterMaintainer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ResourceMeterMaintainer.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ResourceMeterMaintainer.java index 52206d41c00..998b72665d7 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ResourceMeterMaintainer.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ResourceMeterMaintainer.java @@ -1,7 +1,7 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.maintenance; -import com.yahoo.component.Version; +import ai.vespa.metrics.ControllerMetrics; import com.yahoo.concurrent.UncheckedTimeoutException; import com.yahoo.config.provision.ApplicationId; import com.yahoo.config.provision.ClusterResources; @@ -71,8 +71,8 @@ public class ResourceMeterMaintainer extends ControllerMaintainer { private final Metric metric; private final Clock clock; - private static final String METERING_LAST_REPORTED = "metering_last_reported"; - private static final String METERING_TOTAL_REPORTED = "metering_total_reported"; + private static final String METERING_LAST_REPORTED = ControllerMetrics.METERING_LAST_REPORTED.baseName(); + private static final String METERING_TOTAL_REPORTED = ControllerMetrics.METERING_TOTAL_REPORTED.baseName(); private static final int METERING_REFRESH_INTERVAL_SECONDS = 1800; @SuppressWarnings("WeakerAccess") |