summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorØyvind Grønnesby <oyving@verizonmedia.com>2019-07-15 16:37:38 +0200
committerØyvind Grønnesby <oyving@verizonmedia.com>2019-07-15 16:37:38 +0200
commit209d43c45d6412e19192b4e771953cdfb41242be (patch)
treea5f3b7d85db4fd654cc23e88b401c8bf1b1af8a1
parenta6c82adcc159d7fe72f0cb03feec178b036072f2 (diff)
Remove custom code for config server metrics
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java
index 1d9f76cddcd..568ca6ce5be 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java
@@ -1,13 +1,11 @@
// Copyright 2018 Yahoo Holdings. 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.config.provision.ApplicationId;
import com.yahoo.config.provision.HostName;
import com.yahoo.config.provision.SystemName;
import com.yahoo.vespa.hosted.controller.Application;
import com.yahoo.vespa.hosted.controller.ApplicationController;
import com.yahoo.vespa.hosted.controller.Controller;
-import com.yahoo.vespa.hosted.controller.api.application.v4.model.ClusterMetrics;
import com.yahoo.vespa.hosted.controller.api.integration.MetricsService;
import com.yahoo.vespa.hosted.controller.application.Deployment;
import com.yahoo.vespa.hosted.controller.application.DeploymentMetrics;
@@ -102,7 +100,6 @@ public class DeploymentMetricsMaintainer extends Maintainer {
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
- getClusterMetrics();
}
/** Get global rotation status for application */
@@ -125,18 +122,4 @@ public class DeploymentMetricsMaintainer extends Maintainer {
default: throw new IllegalArgumentException("Unknown API value for rotation status: " + status);
}
}
-
- private void getClusterMetrics() {
- controller().zoneRegistry().zones()
- .reachable().ids()
- .stream().forEach(zoneId -> {
- Map<ApplicationId, List<ClusterMetrics>> allMetrics = controller().configServer().getMetrics(zoneId);
- allMetrics.entrySet().stream().forEach(entry -> applications.lockIfPresent(entry.getKey(), locked -> {
- applications.store(locked.with(zoneId, entry.getValue()));
- }));
- }
- );
- }
-
-
}