Class DefaultMetricFilter

  • All Implemented Interfaces:
    MetricFilter

    public class DefaultMetricFilter
    extends Object
    implements MetricFilter
    Default MetricFilter implementation that filters metrics based on MetricOptions.REPORTER_INCLUDES/MetricOptions.REPORTER_EXCLUDES.
    • Method Detail

      • filter

        public boolean filter​(org.apache.flink.metrics.Metric metric,
                              String name,
                              String logicalScope)
        Description copied from interface: MetricFilter
        Filters a given metric.
        Specified by:
        filter in interface MetricFilter
        Parameters:
        metric - the metric to filter
        name - the name of the metric
        logicalScope - the logical scope of the metric
        Returns:
        true, if the metric matches, false otherwise
      • fromConfiguration

        public static MetricFilter fromConfiguration​(org.apache.flink.configuration.Configuration configuration)