public static String sanitizeMetricName ( String metricName ) { return SANITIZE_BODY_PATTERN . matcher ( SANITIZE_PREFIX_PATTERN . matcher ( metricName ) . replaceFirst ( "_" ) ) . replaceAll ( "_" ) ; }
Sanitize metric name