Plugins 〉Flux (InfluxDB) [BETA]


Developer

Grafana Labs

Resources


Sign up to receive occasional product news and updates:



The Flux (InfluxDB) [BETA] plugin has been deprecated and is no longer maintained.

Data Source
grafana

Flux (InfluxDB) [BETA]

  • Overview
  • Installation
  • Change log
  • Related content

InfluxDB (Flux) Datasource [BETA]

This plugin will work with InfluxDB 2.x and InfluxDB 1.8+

In a future grafana releases, this plugin will be incorporated into the main influx plugin and allow a single datasource to support flux queries or influxql (SQL style) queries.

Using

The plugin contains a monaco editor as the query editor which you can copy/paste flux queries into. For now, there are a number of flux queries templated in the query editor that you can use as examples.

For a more graphical experience, your data explorer will be available at: <url specified in config editor>/orgs/<org-id>/data-explorer

Finding your flux org id

In order to find the proper URL, you will ned to get your org-id. This can be done using a query similar to below:

https://influxdb.company.com:9999/api/v2/orgs

Embedded in this JSON response, you will find an array of all organizations, with two fields (shown below)

  "id": "059b46a59abab000",
  "name": "grafana",

Look for the name specified as your default bucket, and you can use the cooresponding id if the id field.

So, if I entered in the config editor, my url to influxdb as https://influxdb.company.com:9999, your data-explorer url would be https://influxdb.company.com:9999/orgs/059b46a59abab000/data-explorer.

In the influx data explorer, you have a graphical query editor you may use. Hit the "Script Editor" button to go to flux langage mode, copy your request, and paste it into the influx query editor.

Installing Flux (InfluxDB) [BETA] on Grafana Cloud:

For more information, visit the docs on plugin installation.

Change Log

[7.0.0] - 2020-05-17

  • Migrated to grafana backend plugin
  • Signed for grafana 7.x
  • Optimized for copy/paste from influxdb 2.0 data explorer. Create more complex queries in data explorer, and copy them into the flux query editor.

[5.4.1] - 2019-10-28

  • Query editor bugfixes

[5.4.0] - 2019-10-09

  • Slate fixes for Grafana 6.4.x
  • Fix for queries which group by time, and return _start and _stop rather than _time

NOTE: This version is only compatible with Grafana v6.4+

[5.3.2] - 2019-07-07

  • Fix for range error when expanding suggestion #39

[5.3.0] - 2019-06-11

  • Update packages
  • Add circleci publishing
  • Add support for Influx V2.0 Alpha Server