3.5 KiB
Use Tableau to query and visualize time series data from {{< product-name >}}. Tableau supports multiple SQL dialects.
Tableau is a visual analytics platform transforming the way we use data to solve problems—empowering people and organizations to make the most of their data.
{{% cite %}}tableau.com{{% /cite %}}
[!Note]
Tableau Desktop
These instructions are for Tableau Desktop. Tableau Cloud and other Tableau products have not been tested, but may support connecting to {{< product-name >}} through the Flight SQL JDBC driver.
Install Tableau Desktop
If you have not already, download and install Tableau Desktop.
Download and install the Flight SQL JDBC driver
To query {{< product-name >}} from Tableau, use the Flight SQL protocol and the Flight SQL JDBC driver.
-
Download the Flight SQL JDBC driver.
- Visit the Flight SQL JDBC driver page.
- Select the Versions tab.
- Click Browse {{< icon "export" >}} next to the version you want to download.
- Click the
flight-sql-jdbc-driver-XX.XX.XX.jarfile (with only the.jarfile extension) from the list of files to download the driver jar file. The version number in the file name is specific to the version you selected.
-
Copy the downloaded jar file into the following directory based on your operating system.
- Windows:
C:\Program Files\Tableau\Drivers - Mac:
~/Library/Tableau/Drivers - Linux:
/opt/tableau/tableau_driver/jdbc
- Windows:
-
Start or restart Tableau.
Configure a JDBC server connection
-
Open Tableau
-
In the Connect column, under To a Server, select Other Databases (JDBC). If that option isn't in the initial list, select More... to find it in the full list of connection options.
-
Provide the required credentials:
-
URL: Your InfluxDB cluster URL with the following:
- Protocol:
jdbc:arrow-flight-sql - Port:
443 - Query parameters:
-
useSystemTrustStore:
false[!Note] Setting
useSystemTrustStore=falseis only necessary on macOS and doesn't actually affect the security of the connection to Tableau. -
database: InfluxDB database name to query
-
See an example connection URL.
- Protocol:
-
Dialect: PostgreSQL
-
Username: Leave empty
-
Password: Leave empty
-
Properties File: Leave empty
-
-
Click Sign In.
Example connection URL
{{< code-placeholders "DATABASE_NAME" >}}
jdbc:arrow-flight-sql://{{< influxdb/host >}}?useSystemTrustStore=false&database=DATABASE_NAME
{{< /code-placeholders >}}
Query InfluxDB
With the connection successfully established, query your time series data stored in {{< product-name >}}. In the left pane:
- Under Database, select public from the drop-down menu.
- Under Schema, select iox from the drop-down menu.
- Under Table, click and drag the table you want to query into the query pane.
- Use Tableau to build and execute SQL queries. For more information, see the Tableau Desktop documentation.