Open
Description
For short lived batch processes, a periodic push isn't sufficient and ideally we want to push the metrics right before exiting.
AFAICT, one would need to call Prometheus.render()
and push manually. Since everything is in place, perhaps a PrometheusHandle.push()
could be exposed. Additionally, a flag in PrometheusBuilder::with_push_gateway(..., at_exit = true | false)
to try a push during a drop?