Moving to using 2 x .find() queries to find the min/max timestamp instead of a single .aggregate() due to some issues under high replset load. Also retrying once if unable to get the 'ts' value. This change resolved the problems I noticed.
Moving to using 2 x .find() queries to find the min/max timestamp instead of a single .aggregate() due to some issues under high replset load. Also retrying once if unable to get the 'ts' value. This change resolved the problems I noticed.

dcu/mongodb_exporter,dcu/mongodb_exporter