1
1
# Databricks - Grafana Data Source Backend Plugin
2
2
3
+ ![ GitHub Release] ( https://img.shields.io/github/v/release/mullerpeter/databricks-grafana )
4
+ [ ![ Github All Releases] ( https://img.shields.io/github/downloads/mullerpeter/databricks-grafana/total.svg )] ( )
3
5
![ Release workflow] ( https://github.com/mullerpeter/databricks-grafana/actions/workflows/release.yml/badge.svg )
4
6
5
7
Grafana Databricks integration allowing direct connection to Databricks to query and visualize Databricks data in Grafana.
6
8
7
9
![ img.png] ( img/full_text_sql_editor.png )
8
10
11
+ ## Documentation
12
+
13
+ Read the full [ Grafana Data Source Backend Plugin Documentation] ( https://mullerpeter.github.io/databricks-grafana ) for more information.
14
+
9
15
## Get started with the plugin
10
16
11
17
### Set up the Databricks Data Source
@@ -21,11 +27,11 @@ If you are using an earlier Grafana version try one of the following Plugin Vers
21
27
#### Install the Data Source
22
28
23
29
1 . Install the plugin into the grafana plugin folder:
24
- ``` shell
30
+ ``` bash
25
31
grafana-cli --pluginUrl https://github.com/mullerpeter/databricks-grafana/releases/latest/download/mullerpeter-databricks-datasource.zip plugins install mullerpeter-databricks-datasource
26
32
```
27
33
or
28
- ``` shell
34
+ ``` bash
29
35
cd /var/lib/grafana/plugins/
30
36
wget https://github.com/mullerpeter/databricks-grafana/releases/latest/download/mullerpeter-databricks-datasource.zip
31
37
unzip mullerpeter-databricks-datasource.zip
@@ -34,12 +40,12 @@ unzip mullerpeter-databricks-datasource.zip
34
40
2 . Edit the grafana configuration file to allow unsigned plugins:
35
41
* Linux:/etc/grafana/grafana.ini
36
42
* macOS:/usr/local/etc/grafana/grafana.ini
37
- ``` shell
43
+ ``` ini
38
44
[plugins]
39
45
allow_loading_unsigned_plugins = mullerpeter-databricks-datasource
40
46
```
41
47
Or with docker
42
- ``` shell
48
+ ``` bash
43
49
docker run -d \
44
50
-p 3000:3000 \
45
51
-v " $( pwd) " /grafana-plugins:/var/lib/grafana/plugins \
@@ -173,7 +179,7 @@ Both the Visual Query Builder and the Code Editor support the transformation of
173
179
# ## Examples
174
180
# ### Single Value Time Series
175
181
176
- ` ` ` sparksql
182
+ ` ` ` sql
177
183
SELECT
178
184
window.start,
179
185
avg(value_column)
@@ -186,7 +192,7 @@ GROUP BY
186
192
` ` `
187
193
# ### Multiple Values Time Series
188
194
189
- ` ` ` sparksql
195
+ ` ` ` sql
190
196
SELECT
191
197
window.start,
192
198
avg(CAST(o_totalprice AS DOUBLE)),
0 commit comments