I am reading Tong's lecture note gauge theory. On page 6 in chapter 1 he writes
Instead, the key distinction is the choice of Abelian gauge group. A $U(1)$ gauge group has only integer electric charges and admits magnetic monopoles. In contrast, a gauge group $R$ can have any irrational charges, but the price you pay is that there are no longer monopoles.
I don't quite understand a gauge group can have any irrational charges. As answered in this question
Also note that in the physics literature, we often identifies charge operators with Lie algebra generators for a Cartan subalgebra (CSA) of the gauge Lie algebra.
Which generator of non-Abelian Lie algebra should be identified with electric charge generator? For example for $SU(3)$ gauge group, if we choose $$ \lambda^8=\frac{1}{\sqrt{3}}\left( \begin{array}{cccc} 1&\,\,\,0&\,\,\,0 \\ 0&\,\,\,1 &\,\,\,0 \\ 0&\,\,\,0&\,\,\,-2 \end{array} \right)$$ Does this mean the charge is $1/\sqrt{3}$?