Interface MetricFilter

  • All Known Implementing Classes:
    DefaultMetricFilter

    public interface MetricFilter
    A filter for metrics.
    • Field Detail

      • NO_OP_FILTER

        static final MetricFilter NO_OP_FILTER
        Filter that accepts every metric.
    • Method Detail

      • filter

        boolean filter​(org.apache.flink.metrics.Metric metric,
                       String name,
                       String logicalScope)
        Filters a given metric.
        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