InfluxElixir.Query.Flux (InfluxElixir v0.1.13)

Copy Markdown View Source

v2 Flux query executor for backwards compatibility.

Flux is the query language for InfluxDB v2. This module provides compatibility for v2-to-v3 migration workflows.

Usage

InfluxElixir.Query.Flux.query(conn,
  ~S(from(bucket: "my-bucket") |> range(start: -1h) |> filter(fn: (r) => r._measurement == "cpu"))
)

Summary

Functions

Executes a Flux query and returns parsed results.

Functions

query(connection, flux, opts \\ [])

Executes a Flux query and returns parsed results.

Options

  • :org - organization name (required for v2)