summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-11-16 23:03:38 +0100
committerJon Bratseth <bratseth@gmail.com>2020-11-16 23:03:38 +0100
commit10ee0e734ba6cc9fce0f1555cf83ecf8cdfcb094 (patch)
treef99bafddb57df8b78d48f4b123643a2dfd14521e /container-core
parentadfad6e225af1392db417ef4fa6ef8c5f97f2b62 (diff)
Use a name that works better for content nodes
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/VipStatus.java2
-rw-r--r--container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java b/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
index bbedf723bfa..50b34d39751 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
@@ -149,7 +149,7 @@ public class VipStatus {
else if (healthState.status() == StateMonitor.Status.up)
healthState.status(StateMonitor.Status.down);
- metric.set("in_rotation", currentlyInRotation ? 1 : 0, metric.createContext(Map.of()));
+ metric.set("in_service", currentlyInRotation ? 1 : 0, metric.createContext(Map.of()));
}
}
diff --git a/container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java b/container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java
index 640222e8351..bce9fe318d5 100644
--- a/container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java
+++ b/container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java
@@ -197,7 +197,7 @@ public class VipStatusTestCase {
@Override
public void set(String key, Number val, Context ctx) {
- if ( ! key.equals("in_rotation"))
+ if ( ! key.equals("in_service"))
throw new RuntimeException("Metric.set called with unexpected key " + key);
inRotation = val.intValue();
}