Datalayers datasource plugin for grafana. It is a plugin for Grafana that support Flight SQL APIs.
The plugin requires the user to run Grafana >=9.2.5. The 10+ version is recommended.
First of all. You need download the plugin.
And then create a directory eg custom/plugins/directory.
Now, you have two options to install on local:
- Edit your
grafana.ini
[paths]
plugins = custom/plugins/directory/
- Set the environment variable before Grafana started.
GF_PATHS_PLUGINS=custom/plugins/directory/
docker run \
-v $PWD/datalayersio-datasource:/custom/plugins/directory/datalayersio-datasource \
-p 3000:3000 \
--name grafana \
grafana/grafana:latest
version: '3'
services:
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
volumes:
- ./datalayersio-datasource:/custom/plugins/directory/datalayersio-datasource
- Enter the
Configuration - Data Sources
page. - Click
Add new data source
button. - Search
Datalayers
keyword. - Click the Datalayers plugin to install.
- Host: Provide the host:port of your Datalayers client.
- Username/Password Provide a username and password.
- Require TLS/SSL: Either enable or disable TLS based on the configuration of your client.
- CA Cert If you use yourself CA Cert file, Paste it in the textarea.
- MetaData Provide optional key, value pairs that you need sent to your Flight SQL client.
The default view is a query builder which is in active development:
- Begin by selecting the table from the dropdown.
- This will auto populate your available columns for your select statement. Use the + and - buttons to add or remove additional where statements.
- You can overwrite a dropdown field by typing in your desired value (e.g.
*
). - The where field is a text entry where you can define any where clauses. Use the + and - buttons to add or remove additional where statements.
- You can switch to a raw SQL input by pressing the "Edit SQL" button. This will show you the query you have been building thus far and allow you to enter any query.
- Press the "Run query" button to see your results.
- From there you can add to dashboards and create any additional dashboards you like.
See DEVELOPMENT.md.