org.apache.flink.metrics.jmx.JMXReporter Java Examples

The following examples show how to use org.apache.flink.metrics.jmx.JMXReporter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KafkaTestBase.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
protected static Configuration getFlinkConfiguration() {
	Configuration flinkConfig = new Configuration();
	flinkConfig.setString(AkkaOptions.WATCH_HEARTBEAT_PAUSE, "5 s");
	flinkConfig.setString(AkkaOptions.WATCH_HEARTBEAT_INTERVAL, "1 s");
	flinkConfig.setString(TaskManagerOptions.MANAGED_MEMORY_SIZE, "16m");
	flinkConfig.setString(ConfigConstants.RESTART_STRATEGY_FIXED_DELAY_DELAY, "0 s");
	flinkConfig.setString(ConfigConstants.METRICS_REPORTER_PREFIX + "my_reporter." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX, JMXReporter.class.getName());
	return flinkConfig;
}
 
Example #2
Source File: JMXJobManagerMetricTest.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
private static Configuration getConfiguration() {
	Configuration flinkConfiguration = new Configuration();

	flinkConfiguration.setString(ConfigConstants.METRICS_REPORTER_PREFIX + "test." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX, JMXReporter.class.getName());
	flinkConfiguration.setString(MetricOptions.SCOPE_NAMING_JM_JOB, "jobmanager.<job_name>");

	return flinkConfiguration;
}
 
Example #3
Source File: KafkaTestBase.java    From flink with Apache License 2.0 5 votes vote down vote up
protected static Configuration getFlinkConfiguration() {
	Configuration flinkConfig = new Configuration();
	flinkConfig.setString(AkkaOptions.WATCH_HEARTBEAT_PAUSE, "5 s");
	flinkConfig.setString(AkkaOptions.WATCH_HEARTBEAT_INTERVAL, "1 s");
	flinkConfig.setString(TaskManagerOptions.MANAGED_MEMORY_SIZE, "16m");
	flinkConfig.setString(ConfigConstants.RESTART_STRATEGY_FIXED_DELAY_DELAY, "0 s");
	flinkConfig.setString(ConfigConstants.METRICS_REPORTER_PREFIX + "my_reporter." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX, JMXReporter.class.getName());
	return flinkConfig;
}
 
Example #4
Source File: JMXJobManagerMetricTest.java    From flink with Apache License 2.0 5 votes vote down vote up
private static Configuration getConfiguration() {
	Configuration flinkConfiguration = new Configuration();

	flinkConfiguration.setString(ConfigConstants.METRICS_REPORTER_PREFIX + "test." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX, JMXReporter.class.getName());
	flinkConfiguration.setString(MetricOptions.SCOPE_NAMING_JM_JOB, "jobmanager.<job_name>");

	return flinkConfiguration;
}
 
Example #5
Source File: JMXJobManagerMetricTest.java    From flink with Apache License 2.0 5 votes vote down vote up
private static Configuration getConfiguration() {
	Configuration flinkConfiguration = new Configuration();

	flinkConfiguration.setString(ConfigConstants.METRICS_REPORTER_PREFIX + "test." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX, JMXReporter.class.getName());
	flinkConfiguration.setString(MetricOptions.SCOPE_NAMING_JM_JOB, "jobmanager.<job_name>");

	return flinkConfiguration;
}
 
Example #6
Source File: PulsarTestBase.java    From pulsar-flink with Apache License 2.0 4 votes vote down vote up
protected static Configuration getFlinkConfiguration() {
    Configuration flinkConfig = new Configuration();
    flinkConfig.setString(TaskManagerOptions.MANAGED_MEMORY_SIZE, "16m");
    flinkConfig.setString(ConfigConstants.METRICS_REPORTER_PREFIX + "my_reporter." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX, JMXReporter.class.getName());
    return flinkConfig;
}
 
Example #7
Source File: KafkaTestBase.java    From flink with Apache License 2.0 4 votes vote down vote up
protected static Configuration getFlinkConfiguration() {
	Configuration flinkConfig = new Configuration();
	flinkConfig.set(TaskManagerOptions.MANAGED_MEMORY_SIZE, MemorySize.parse("16m"));
	flinkConfig.setString(ConfigConstants.METRICS_REPORTER_PREFIX + "my_reporter." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX, JMXReporter.class.getName());
	return flinkConfig;
}