Skip to content

Allow final push at exit when using prometheus-push-gateway #413

Open
@nstinus

Description

@nstinus

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-exporterComponent: exporters such as Prometheus, TCP, etc.E-intermediateEffort: intermediate.T-enhancementType: enhancement.T-ergonomicsType: ergonomics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions