@PublicEvolving public class MetricOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MetricOptions.JobStatusMetrics
Enum describing the different kinds of job status metrics.
|
static class |
MetricOptions.JobStatusMetricsSettings
Describes which job status metrics have been enabled.
|
Modifier and Type | Field and Description |
---|---|
static ConfigOption<List<MetricOptions.JobStatusMetrics>> |
JOB_STATUS_METRICS
Controls which job status metrics will be exposed.
|
static ConfigOption<Integer> |
LATENCY_HISTORY_SIZE
The number of measured latencies to maintain at each operator.
|
static ConfigOption<Long> |
LATENCY_INTERVAL |
static ConfigOption<String> |
LATENCY_SOURCE_GRANULARITY |
static ConfigOption<Long> |
METRIC_FETCHER_UPDATE_INTERVAL
The config parameter defining the update interval for the metric fetcher used by the web UI
in milliseconds.
|
static ConfigOption<String> |
QUERY_SERVICE_PORT
The default network port range for Flink's internal metric query service.
|
static ConfigOption<Integer> |
QUERY_SERVICE_THREAD_PRIORITY
The thread priority for Flink's internal metric query service.
|
static ConfigOption<Map<String,String>> |
REPORTER_ADDITIONAL_VARIABLES |
static ConfigOption<String> |
REPORTER_CLASS
Deprecated.
use
REPORTER_FACTORY_CLASS instead. |
static ConfigOption<String> |
REPORTER_CONFIG_PARAMETER |
static ConfigOption<String> |
REPORTER_EXCLUDED_VARIABLES |
static ConfigOption<List<String>> |
REPORTER_EXCLUDES |
static ConfigOption<String> |
REPORTER_FACTORY_CLASS |
static ConfigOption<List<String>> |
REPORTER_INCLUDES |
static ConfigOption<Duration> |
REPORTER_INTERVAL |
static ConfigOption<String> |
REPORTER_SCOPE_DELIMITER |
static ConfigOption<String> |
REPORTERS_LIST
An optional list of reporter names.
|
static ConfigOption<String> |
SCOPE_DELIMITER
The delimiter used to assemble the metric identifier.
|
static ConfigOption<String> |
SCOPE_NAMING_JM
The scope format string that is applied to all metrics scoped to a JobManager.
|
static ConfigOption<String> |
SCOPE_NAMING_JM_JOB
The scope format string that is applied to all metrics scoped to a job on a JobManager.
|
static ConfigOption<String> |
SCOPE_NAMING_JM_OPERATOR
The scope format string that is applied to all metrics scoped to the components running on a
JobManager of an operator.
|
static ConfigOption<String> |
SCOPE_NAMING_OPERATOR
The scope format string that is applied to all metrics scoped to an operator.
|
static ConfigOption<String> |
SCOPE_NAMING_TASK
The scope format string that is applied to all metrics scoped to a task.
|
static ConfigOption<String> |
SCOPE_NAMING_TM
The scope format string that is applied to all metrics scoped to a TaskManager.
|
static ConfigOption<String> |
SCOPE_NAMING_TM_JOB
The scope format string that is applied to all metrics scoped to a job on a TaskManager.
|
static ConfigOption<Boolean> |
SYSTEM_RESOURCE_METRICS
Whether Flink should report system resource metrics such as machine's CPU, memory or network
usage.
|
static ConfigOption<Long> |
SYSTEM_RESOURCE_METRICS_PROBING_INTERVAL
Interval between probing of system resource metrics specified in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
static Configuration |
forReporter(Configuration configuration,
String reporterName)
Returns a view over the given configuration via which options can be set/retrieved for the
given reporter.
|
public static final ConfigOption<String> REPORTERS_LIST
Example:
metrics.reporters = foo,bar
metrics.reporter.foo.class = org.apache.flink.metrics.reporter.JMXReporter
metrics.reporter.foo.interval = 10
metrics.reporter.bar.class = org.apache.flink.metrics.graphite.GraphiteReporter
metrics.reporter.bar.port = 1337
@Deprecated public static final ConfigOption<String> REPORTER_CLASS
REPORTER_FACTORY_CLASS
instead.public static final ConfigOption<String> REPORTER_FACTORY_CLASS
public static final ConfigOption<Duration> REPORTER_INTERVAL
public static final ConfigOption<String> REPORTER_SCOPE_DELIMITER
public static final ConfigOption<Map<String,String>> REPORTER_ADDITIONAL_VARIABLES
public static final ConfigOption<String> REPORTER_EXCLUDED_VARIABLES
public static final ConfigOption<List<String>> REPORTER_INCLUDES
public static final ConfigOption<List<String>> REPORTER_EXCLUDES
public static final ConfigOption<String> REPORTER_CONFIG_PARAMETER
public static final ConfigOption<String> SCOPE_DELIMITER
public static final ConfigOption<String> SCOPE_NAMING_JM
public static final ConfigOption<String> SCOPE_NAMING_TM
public static final ConfigOption<String> SCOPE_NAMING_JM_JOB
public static final ConfigOption<String> SCOPE_NAMING_JM_OPERATOR
public static final ConfigOption<String> SCOPE_NAMING_TM_JOB
public static final ConfigOption<String> SCOPE_NAMING_TASK
public static final ConfigOption<String> SCOPE_NAMING_OPERATOR
public static final ConfigOption<Long> LATENCY_INTERVAL
public static final ConfigOption<String> LATENCY_SOURCE_GRANULARITY
public static final ConfigOption<Integer> LATENCY_HISTORY_SIZE
public static final ConfigOption<Boolean> SYSTEM_RESOURCE_METRICS
public static final ConfigOption<Long> SYSTEM_RESOURCE_METRICS_PROBING_INTERVAL
SYSTEM_RESOURCE_METRICS
is enabled.public static final ConfigOption<String> QUERY_SERVICE_PORT
"0"
means that Flink searches for a free port.public static final ConfigOption<Integer> QUERY_SERVICE_THREAD_PRIORITY
1
means the min
priority and the 10
means the max priority.public static final ConfigOption<Long> METRIC_FETCHER_UPDATE_INTERVAL
public static final ConfigOption<List<MetricOptions.JobStatusMetrics>> JOB_STATUS_METRICS
@Experimental public static Configuration forReporter(Configuration configuration, String reporterName)
Configuration config = ... MetricOptions.forReporter(config, "my_reporter") .set(MetricOptions.REPORTER_INTERVAL, Duration.ofSeconds(10)) ...
configuration
- backing configurationreporterName
- reporter nameCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.