Add option to exclude metrics

The disk metrics of persistent caches were taking a long time to collect
(> 1 minute in some cases). This could block several threads, when
trying to scrape the metrics.

This change ports the commit a7d491a94ae5675b3582aa2f5636d72ae4969c8b of
the metrics-reporter-jmx plugin to this plugin. This change allows to
configure which metrics to exclude from reporting using regular
expressions.

This allows to exclude problematic or unwanted metrics, thereby allowing
to avoid the issue described above.

Change-Id: I1f144bad3aa68d217fa3cd637a5f1445f5b79623
2 files changed
tree: bcda5fddde40e1cd30d9b6eb1dd44bc849174c93
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl
  4. pom.xml