Custom metrics sample