Picking up where @CR Drost leaves off (thank you Dorst getting this started. For completeness sake, I'll complete the question and address the normalization constant you mentioned), we have the volume element of velocity space that is exiting the container.
$$v_z f(v) \theta(v_z) dv d\theta d\phi$$
We can integrate over velocity space to determine the total number of particles that are exiting.
$$\left< N \right> = \int d^3v \, n v_z f(v) \theta(v_z) $$
Note:
(1) $\theta(v_z)$ is the step function because (as Drost notes) only positive velocity will travel through the hole.
(2) $d^3v= dv d\theta d\phi$ and $n$ is the multiplicity factor for number flux.
(3) The number flux will also now serve as our normalization constant (just like in $\bar{x} = \sum x_i p_i = \frac{1}{N} \sum x_i n_i $)
So to calculate the expectation value of an exiting particle's kinetic energy we compute compute the average kinetic energy over all the escaping particles (with appropriate normalization):
$$\left< \frac{mv^2}{2} \right> = \int d^3v \, \left( \frac{mv^2}{2} \right) n v_z f(v) \theta(v_z) / \int d^3v n v_z f(v) \theta(v_z) $$
For a classical gas we have the Boltzman distribution $f(v) = exp(-\beta m v^2 /2)$, where $\beta=1/T$, the inverse temp. So simplifying with $a = \frac{\beta m}{2}$ and $d^3v= 4 \pi v^2 dv$ then we arrive at,
$$\left< \frac{mv^2}{2} \right> = \frac{m}{2} \frac{\int^{\infty}_0 dv \, v^5 e^{-av^2}}{\int^{\infty}_0 dv \, v^3 e^{-av^2}}$$
for which we can evaluate the integral (https://www.wolframalpha.com/input/?i=Integral%5Bx%5EnExp%5B-ax%5E2%5D%2C%7Bx%2C0%2Cinfinity%7D%5D)
to arrive at
$$\left< \frac{mv^2}{2} \right> = \frac{m}{2} a^{-1} \frac{\Gamma(3)}{\Gamma(2)} = 2T $$
Note: Factors of $K_b$ are dropped throughout entire derivation