How to set up a metric