Invariant metrics for the quaternionic Hardy space