![]() |
VOOZH | about |
The CData JDBC Driver for Grafana seamlessly integrates Grafana data into database management tools like DBArtisan by enabling you to access Grafana data as a database. This article shows how to create a JDBC source for Grafana in DBArtisan. You can then edit data visually and execute standard SQL.
Follow the steps below to register Grafana data as a database instance in your project:
Start by setting the Profile connection property to the location of the Grafana Profile on disk (e.g. C:\profiles\Grafana.apip). Next, set the ProfileSettings connection property to the connection string for Grafana (see below).
In Grafana, navigate to Administration > Users and Access > Service accounts, create a service account, then click Add service account token to generate a token.
For assistance in constructing the JDBC URL, use the connection string designer built into the Grafana JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.api.jar
Fill in the connection properties and copy the connection string to the clipboard.
👁 Required JDBC connection properties in the Register Datasource wizard. (Salesforce is shown.)Below is a typical connection string:
jdbc:api:Profile=C:\profiles\Grafana.apip;ProfileSettings='Token=your_service_account_token;Domain=your_grafana_domain';
You can now work with Grafana data as you work with any other database. See the driver help documentation for more information on the queries supported by the Grafana API.
👁 The results of a query. (Salesforce is shown.)Connect to live data from Grafana with the API Driver
Connect to Grafana