The question is in the title. A countable locally compact Hausdorff group is discrete, so saying that a finitely generated metrizable group is locally compact would be enough.
What if the group is a subgroup of a compact metrizable group? An open or closed subspace of a compact Hausdorff space is locally compact, but here there is no hypothesis on opennes or closure.
The $p$-adic topology on $\mathbb{Z}$, having as a basis of neighborhoods the subgroups of $\mathbb{Z}$ of the form $p^n\mathbb{Z}$ ($p$ a prime) is metrizable and non discrete. The completion is the group (or ring) of $p$-adic integers, which is compact and metrizable.