Only install the wsmaster metrics module when metrics are enabled.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
6.19.x
Lukas Krejci 2019-01-08 08:52:56 +01:00
parent 7f38fc4e91
commit d8a87ba1b1
1 changed files with 1 additions and 3 deletions

View File

@ -290,6 +290,7 @@ public class WsMasterModule extends AbstractModule {
}
if (Boolean.valueOf(System.getenv("CHE_METRICS_ENABLED"))) {
install(new org.eclipse.che.core.metrics.MetricsModule());
install(new WsMasterMetricsModule());
}
}
@ -322,7 +323,6 @@ public class WsMasterModule extends AbstractModule {
.to(org.eclipse.che.api.workspace.server.DefaultWorkspaceStatusCache.class);
install(new org.eclipse.che.api.workspace.activity.inject.WorkspaceActivityModule());
install(new WsMasterMetricsModule());
}
private void configureMultiUserMode(
@ -405,8 +405,6 @@ public class WsMasterModule extends AbstractModule {
bind(PermissionChecker.class).to(PermissionCheckerImpl.class);
bindConstant().annotatedWith(Names.named("che.agents.auth_enabled")).to(true);
install(new WsMasterMetricsModule());
}
private void configureJwtProxySecureProvisioner(String infrastructure) {