Wrap MetricRegistry to handle exclusion rules

This change fixes the same issue for this plugin like
Iaf0b4fa03293ccc2313ab0332f70a3a41ea30a25 for the metrics-reporter-jmx
plugin.

Since exporting metrics to prometheus works differently from exporting
metrics to JXM (collect vs listen) we need a different way of filtering
here than in the referenced change for the other plugin.

Change-Id: I55a441fa30b0fd8739d557ae24571de69d91ec99
2 files changed
tree: 0c54d32c84042a0451be9629aed7fe7a6a4b994c
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl
  4. pom.xml