tried metrics but couldn't get it working