Configures Metrics via Spring annotations.