ramesh-muthusamy opened a new pull request, #42416: URL: https://github.com/apache/spark/pull/42416
### What changes were proposed in this pull request? Adding additional option in StatsdSink to allow passing regex as a filter option for reporting metrics Added unit test case to validate the application of filter in the StatsdSink Updated metrics config to represent the added config for StatsdSink ### Why are the changes needed? In the current state Spark metrics instances send a large range of metrics that are useful for debugging and performance analysis. There are cases where the consumers would like to switch between deeper metrics and only specific custom metrics that are required for system maintenance. This option introduced in StatsdSink extends the existing filtering option in the reporter and exposes the same as an option. This implementation is similar to GraphiteSink that supports a similar feature. ### Does this PR introduce _any_ user-facing change? Yes , This PR exposes an additional config that users can provide optionally to filter the metrics that are being reported. This is a optional field and defaulted to the existing behaviour where the sink reports all the metrics. ### How was this patch tested? Unit tests has been added in the PR to validate the change -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org