Class EventOptions


  • @Experimental
    public class EventOptions
    extends Object
    Configuration options for events and event reporters.
    • Field Detail

      • REPORTERS_LIST

        public static final ConfigOption<String> REPORTERS_LIST
        An optional list of reporter names. If configured, only reporters whose name matches any of the names in the list will be started. Otherwise, all reporters that could be found in the configuration will be started.

        Example:

        
         events.reporters = foo,bar
        
         events.reporter.foo.class = org.apache.flink.events.reporter.OpenTelemetryEventReporter
         events.reporter.foo.endpoint = 127.0.0.1:4137
         
      • REPORTER_CONFIG_PARAMETER

        public static final ConfigOption<String> REPORTER_CONFIG_PARAMETER
      • REPORTER_SCOPE_DELIMITER

        public static final ConfigOption<String> REPORTER_SCOPE_DELIMITER
      • REPORTER_EXCLUDED_VARIABLES

        public static final ConfigOption<String> REPORTER_EXCLUDED_VARIABLES
    • Method Detail

      • forEventReporter

        @Experimental
        public static Configuration forEventReporter​(Configuration configuration,
                                                     String reporterName)
        Returns a view over the given configuration via which options can be set/retrieved for the given reporter.
             Configuration config = ...
             MetricOptions.forReporter(config, "my_reporter")
                 .set(MetricOptions.REPORTER_INTERVAL, Duration.ofSeconds(10))
                 ...
         
        Parameters:
        configuration - backing configuration
        reporterName - reporter name
        Returns:
        view over configuration