Add metrics handler