When solutions to Einstein's equations are found (in coordinates $t,r,\theta,\phi$), such as Schwarzschild, Kerr etc. the way they are found seems to be by starting with a generalised metric in terms of functions of the appropriate parameters such as $f(r)$ for Schwarzschild and $f(r,Q)$ for Reissner-Nordstrom and then of course the more complicated issue of cross terms for rotations, and then finding these functions such that Einstein's equations are satisfied.
However, when you go about this yourself you realise that the solutions to Einstein's equations are going to result in these functions having constants present simply because these are differential equations we're solving. Of course most people who have studied GR know this, but is it perhaps taken for granted how we set these constants appropriately?
How do I know what to set this constant to? Right now I'm assuming we use dimensional analysis and the boundary conditions (i.e. you usually want Minkowski space as $r \to \infty$), but what about choosing dimensionless parameters such as the $2$ in Schwarzschild's solution involving the integration constant $2M$? Then a slightly more complicated issue of $AdS$ space where the boundary conditions are different?
Right now, when Mathematica tells me I have a free constant that won't affect Einstein's equations being satisfied, I just set it to $M$, but surely there's more to it?