IllegalArgumentException: metric name cannot contain whitespace when registering custom metrics
MetricRegistry Name Validation When adding a custom metric to Dropwizard’s MetricRegistry , the framework throws IllegalArgumentException: metric name cannot contain whitespace if the supplied name includes spaces. This exception is documented in the MetricRegistry Javadoc and is also the root cause of 400 responses from the /metrics endpoint when malformed