Skip to main content

push_to_loki

Function push_to_loki 

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

Push a query result to Grafana Loki HTTP push API.

url should be the base Loki URL, e.g. http://localhost:3100. The push endpoint /loki/api/v1/push is appended automatically.