Skip to main content

push_to_prometheus

Function push_to_prometheus 

Source
pub async fn push_to_prometheus(
    url: &str,
    result: &ExecutionResult,
) -> Result<(), ExportError>
Expand description

Push a query result to Prometheus Pushgateway.

url should be the Pushgateway URL, e.g. http://localhost:9091. The job name is fixed as dol.