What are metrics and how do they work?