Thie PR adds applying the filtering when adding/removing metrics in KafkaPrometheusMetricsReporter instead of doing it in KafkaMetricsCollector.collect() which runs when the /metrics endpoint is hit so it's on the hot path. It refers to the following issue: https://github.com/strimzi/metrics-reporter/issues/9
Thie PR adds applying the filtering when adding/removing metrics in KafkaPrometheusMetricsReporter instead of doing it in KafkaMetricsCollector.collect() which runs when the /metrics endpoint is hit so it's on the hot path. It refers to the following issue: https://github.com/strimzi/metrics-reporter/issues/9