The request is to to add an additional config property external.kafka.metrics.include.regex to include metrics based on regex patterns. This property can take multiple comma separated regex expressions.
- By default, a metric will be included.
- If the metric starts with any of the prefixes in the exclude.prefix property, it is a candidate for discarding.
- However, for an "excluded" metric, if the metric starts with any of the prefixes in include.prefix or matches any pattern in include.regex, it will NOT be discarded.