summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authoryngveaasheim <yngve@yahooinc.com>2023-07-31 16:42:36 +0200
committeryngveaasheim <yngve@yahooinc.com>2023-07-31 16:42:36 +0200
commitdeb2e40366ff3211e7ba4964fb85b90d38ec5ce2 (patch)
tree73193d7e7ca8b67aa1967d7e9ef546df4147bbdc /controller-server
parent973bf954814ec474d596bc169064b33eba7f4dd8 (diff)
Include remaining metrics used by alerts. Fix two comments from Ola.
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/impl/AthenzClientFactoryImpl.java3
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ArchiveAccessMaintainer.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/impl/AthenzClientFactoryImpl.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/impl/AthenzClientFactoryImpl.java
index c88eb2f1b86..aa50f9d3a87 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/impl/AthenzClientFactoryImpl.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/impl/AthenzClientFactoryImpl.java
@@ -1,6 +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.athenz.impl;
+import ai.vespa.metrics.ControllerMetrics;
import com.yahoo.component.annotation.Inject;
import com.yahoo.jdisc.Metric;
import com.yahoo.vespa.athenz.api.AthenzIdentity;
@@ -22,7 +23,7 @@ import java.util.Map;
*/
public class AthenzClientFactoryImpl implements AthenzClientFactory {
- private static final String METRIC_NAME = "athenz.request.error";
+ private static final String METRIC_NAME = ControllerMetrics.ATHENZ_REQUEST_ERROR.baseName();
private static final String ATHENZ_SERVICE_DIMENSION = "athenz-service";
private static final String EXCEPTION_DIMENSION = "exception";
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ArchiveAccessMaintainer.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ArchiveAccessMaintainer.java
index b2ed0941c8e..33a4802360e 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ArchiveAccessMaintainer.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ArchiveAccessMaintainer.java
@@ -1,6 +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 ai.vespa.metrics.ControllerMetrics;
import com.yahoo.config.provision.TenantName;
import com.yahoo.config.provision.zone.ZoneId;
import com.yahoo.jdisc.Metric;
@@ -24,7 +25,7 @@ import java.util.stream.Collectors;
*/
public class ArchiveAccessMaintainer extends ControllerMaintainer {
- private static final String bucketCountMetricName = "archive.bucketCount";
+ private static final String bucketCountMetricName = ControllerMetrics.ARCHIVE_BUCKET_COUNT.baseName();
private final CuratorArchiveBucketDb archiveBucketDb;
private final ArchiveService archiveService;