Adds datetime to metrics.