@Override protected void startUp() throws Exception { registerJvmMetrics(); this.jmxReporter.start(); }
private void addJMXReportingService() { addService(new JMXReportingService()); }
private void addMetricsService(Properties properties) { if (GobblinMetrics.isEnabled(properties)) { addService(new MetricsReportingService(properties, this.appId)); } }
private void registerJvmMetrics() { registerMetricSetWithPrefix("jvm.gc", new GarbageCollectorMetricSet()); registerMetricSetWithPrefix("jvm.memory", new MemoryUsageGaugeSet()); registerMetricSetWithPrefix("jvm.threads", new ThreadStatesGaugeSet()); this.metricRegistry.register("jvm.fileDescriptorRatio", new FileDescriptorRatioGauge()); for (Map.Entry<String, MetricSet> metricSet : this.additionalMetricSets.entrySet()) { registerMetricSetWithPrefix(metricSet.getKey(), metricSet.getValue()); } }
private GobblinHelixTaskFactory generateTaskFactory(TaskExecutor taskExecutor, Builder builder) { Properties properties = ConfigUtils.configToProperties(builder.getConfig()); URI rootPathUri = PathUtils.getRootPath(builder.getAppWorkPath()).toUri(); Config stateStoreJobConfig = ConfigUtils.propertiesToConfig(properties) .withValue(ConfigurationKeys.STATE_STORE_FS_URI_KEY, ConfigValueFactory.fromAnyRef(rootPathUri.toString())); TaskStateTracker taskStateTracker = new GobblinHelixTaskStateTracker(properties); services.add(taskExecutor); services.add(taskStateTracker); services.add(new JMXReportingService( ImmutableMap.of("task.executor", taskExecutor.getTaskExecutorQueueMetricSet()))); return new GobblinHelixTaskFactory(builder, taskExecutor, taskStateTracker, stateStoreJobConfig); } }
@Override protected void startUp() throws Exception { registerJvmMetrics(); this.jmxReporter.start(); }
private void addMetricsService(Properties properties) { if (GobblinMetrics.isEnabled(properties)) { addService(new MetricsReportingService(properties, this.appId)); } }
private void registerJvmMetrics() { registerMetricSetWithPrefix("jvm.gc", new GarbageCollectorMetricSet()); registerMetricSetWithPrefix("jvm.memory", new MemoryUsageGaugeSet()); registerMetricSetWithPrefix("jvm.threads", new ThreadStatesGaugeSet()); this.metricRegistry.register("jvm.fileDescriptorRatio", new FileDescriptorRatioGauge()); for (Map.Entry<String, MetricSet> metricSet : this.additionalMetricSets.entrySet()) { registerMetricSetWithPrefix(metricSet.getKey(), metricSet.getValue()); } }
private void addJMXReportingService() { addService(new JMXReportingService()); }
private GobblinHelixTaskFactory generateTaskFactory(TaskExecutor taskExecutor, Builder builder) { Properties properties = ConfigUtils.configToProperties(builder.getConfig()); URI rootPathUri = PathUtils.getRootPath(builder.getAppWorkPath()).toUri(); Config stateStoreJobConfig = ConfigUtils.propertiesToConfig(properties) .withValue(ConfigurationKeys.STATE_STORE_FS_URI_KEY, ConfigValueFactory.fromAnyRef(rootPathUri.toString())); TaskStateTracker taskStateTracker = new GobblinHelixTaskStateTracker(properties); services.add(taskExecutor); services.add(taskStateTracker); services.add(new JMXReportingService( ImmutableMap.of("task.executor", taskExecutor.getTaskExecutorQueueMetricSet()))); return new GobblinHelixTaskFactory(builder.getContainerMetrics(), taskExecutor, taskStateTracker, builder.getFs(), builder.getAppWorkPath(), stateStoreJobConfig, builder.getHelixManager()); } }