Allow final push at exit when using prometheus-push-gateway #413
Labels
C-exporter
Component: exporters such as Prometheus, TCP, etc.
E-intermediate
Effort: intermediate.
T-enhancement
Type: enhancement.
T-ergonomics
Type: ergonomics.
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 aPrometheusHandle.push()
could be exposed. Additionally, a flag inPrometheusBuilder::with_push_gateway(..., at_exit = true | false)
to try a push during a drop?The text was updated successfully, but these errors were encountered: