InfluxDB: Flux - Query remote InfluxDB: Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „With InfluxDB 2.x you can query remote InfluxDB sources with the Flux function ''from()''. <br> From() cannot retrieve data from remote InfluxDB OSS 1.x or Inf…“) |
Admin (Diskussion | Beiträge) |
||
(Eine dazwischenliegende Version des gleichen Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | + | '''InfluxDB 2.x can query remote InfluxDB sources''' with the Flux function ''from()''. <br> | |
− | From() | + | From() can retrieve data from remote InfluxDB OSS 1.7+ or InfluxDB Enterprise 1.9+ data sources but not the opposite way. |
− | To query remote InfluxDB sources, include the host, token, and org (or orgID) parameters. | + | To query remote InfluxDB sources, include the '''host''', '''token''', and '''org''' (or orgID) parameters. |
=== Example === | === Example === | ||
Zeile 19: | Zeile 19: | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | ''More information's: https://docs.influxdata.com/flux/v0.x/stdlib/influxdata/influxdb/from/'' | ||
Aktuelle Version vom 3. Februar 2022, 08:49 Uhr
InfluxDB 2.x can query remote InfluxDB sources with the Flux function from().
From() can retrieve data from remote InfluxDB OSS 1.7+ or InfluxDB Enterprise 1.9+ data sources but not the opposite way.
To query remote InfluxDB sources, include the host, token, and org (or orgID) parameters.
Example
token = "<YOUR_TOKEN>" from( bucket: "<YOUR_BUCKET>", host: "https://<YOUR_INFLUXDB-INSTANCE>:8086", org: "<YOUR_ORGANISATION>", token: token ) |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r._measurement == "<YOUR_MEASUREMENT>") ..
More information's: https://docs.influxdata.com/flux/v0.x/stdlib/influxdata/influxdb/from/