Consider the metric equations for a universe with just a single point mass M as given in schwarzschild coordinates outside the event horizon.
The quantity we wish to calculate is the gravitational red shift per unit distance as a function of the radial coordinate.