Skip to main content

push_to_influxdb

Function push_to_influxdb 

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

Push a query result to InfluxDB v1/v2 HTTP write API.

url should be the full write endpoint, e.g.: http://localhost:8086/write?db=mydb (InfluxDB v1) http://localhost:8086/api/v2/write?org=myorg&bucket=mybucket (v2)