Add metrics in the event resource.