Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

"Metric request error" when displaying InfluxDB data using FLUX query language in grafana #127

Open
@lchtbruno

Description

@lchtbruno

I want to join tables, but I get a metric request error. The data consists of two measurements, with a time and value column.

data_1 = from(bucket:"telegraf/autogen")
  |> range(start:-1h)
  |> filter(fn: (r) =>
    r._measurement == "Dev502_Room6_Temp_ME_AI20" and
    r._field == "value")

data_2 = from(bucket:"telegraf/autogen")
  |> range(start:-1h)
  |> filter(fn: (r) =>
    r._measurement == "Dev502_Room6_Hum_ME_AI21" and
    r._field == "value")

join(tables: {key1: data_1, key2: data_2}, on: ["_time", "_field"], method: "inner")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions