summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorØyvind Grønnesby <oyving@verizonmedia.com>2019-07-18 12:02:51 +0200
committerGitHub <noreply@github.com>2019-07-18 12:02:51 +0200
commite495f76befbffc97f5cf8201aab19aa259eb8a7f (patch)
tree3b5b98563e45034f28930662c5d0c64e81626259
parent78e8c81860876a6b10134e4a76c7a9e27e3f100a (diff)
parent819826969319f8e49bb6a44a0bff6c561d311da5 (diff)
Merge pull request #10062 from vespa-engine/olaa/add-consumer
Set consumer parameter
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java b/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
index 3f0a0a705c5..7e4729bce4d 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
@@ -802,7 +802,7 @@ public class ApplicationRepository implements com.yahoo.config.provision.Deploye
String clusterTypeString = serviceInfo.getProperty("clustertype").orElse("");
if (!ClusterInfo.ClusterType.isValidType(clusterTypeString)) return;
ClusterInfo.ClusterType clusterType = ClusterInfo.ClusterType.valueOf(clusterTypeString);
- URI host = URI.create("http://" + hostInfo.getHostname() + ":" + servicePort(serviceInfo) + "/metrics/v1/values");
+ URI host = URI.create("http://" + hostInfo.getHostname() + ":" + servicePort(serviceInfo) + "/metrics/v1/values?consumer=Vespa");
clusterHosts.computeIfAbsent(clusterName, l -> new ArrayList<URI>()).add(host);
clusters.computeIfAbsent(clusterName, c -> new ClusterInfo(clusterName, clusterType)).addHost(host);
}