Registering Metrics Automatically