diff options
author | yngveaasheim <yngve@yahooinc.com> | 2023-08-02 12:32:09 +0200 |
---|---|---|
committer | yngveaasheim <yngve@yahooinc.com> | 2023-08-02 12:32:09 +0200 |
commit | 5e666c21ebd5a7a8decfc7ebfc31360b433b2ed5 (patch) | |
tree | e9ea75597c8f6dee11558b25751cccb8dae21ffc /node-repository | |
parent | 83e8986e9aeb5a703bcd96299d102f36e0934705 (diff) |
Include remaining metrics used for alerts
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningThrottler.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningThrottler.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningThrottler.java index cfdc3e8dbe8..1cb7daae33f 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningThrottler.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningThrottler.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.provision.provisioning; +import ai.vespa.metrics.ConfigServerMetrics; import com.yahoo.jdisc.Metric; import com.yahoo.vespa.flags.IntFlag; import com.yahoo.vespa.flags.PermanentFlags; @@ -22,7 +23,7 @@ import java.util.logging.Logger; public class ProvisioningThrottler { /** Metric that indicates whether throttling is active where 1 means active and 0 means inactive */ - private static final String throttlingActiveMetric = "throttledHostProvisioning"; + private static final String throttlingActiveMetric = ConfigServerMetrics.THROTTLED_HOST_PROVISIONING.baseName(); private static final Logger LOG = Logger.getLogger(ProvisioningThrottler.class.getName()); private static final Duration WINDOW = Duration.ofDays(1); |