Skip to content

Commit

Permalink
[FLINK-5321] [metrics] LocalFlinkMiniCluster starts JM MetricQS
Browse files Browse the repository at this point in the history
This closes #2991.
  • Loading branch information
zentol committed Jan 19, 2017
1 parent 6c03491 commit b36b43b
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -132,6 +132,10 @@ class LocalFlinkMiniCluster(
ioExecutor,
createLeaderElectionService())

if (config.getBoolean(ConfigConstants.LOCAL_START_WEBSERVER, false)) {
metricsRegistry.get.startQueryService(system, null)
}

val archive = system.actorOf(
getArchiveProps(
memoryArchivistClass,
Expand Down Expand Up @@ -232,7 +236,9 @@ class LocalFlinkMiniCluster(
createLeaderRetrievalService(),
metricRegistry)

metricRegistry.startQueryService(system, resourceID)
if (config.getBoolean(ConfigConstants.LOCAL_START_WEBSERVER, false)) {
metricRegistry.startQueryService(system, resourceID)
}

system.actorOf(props, taskManagerActorName)
}
Expand Down

0 comments on commit b36b43b

Please sign in to comment.