Skip to content
This repository was archived by the owner on Dec 11, 2022. It is now read-only.

Commit 6741ddf

Browse files
authored
Merge pull request #185 from doitintl/issue-184
Sloves #184
2 parents 5e77049 + 4b8d374 commit 6741ddf

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@
88
## Status: Production Ready
99
# BigQuery DataSource for Grafana
1010

11-
A BigQuery DataSource plugin provides support for [BigQuery](https://cloud.google.com/bigquery/) as a backend database.
11+
A BigQuery DataSource plugin provides support for [BigQuery](https://cloud.google.com/bigquery/) as a backend database.
1212

1313
### Quick Start
14-
There are multiple ways to install bigquery-grafana. See [INSTALL](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/INSTALL.md) for more information.
14+
There are multiple ways to install bigquery-grafana. See [INSTALL](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/INSTALL.md) for more information.
1515

1616
### Features:
1717

1818
* Query setup
1919
* Raw SQL editor
2020
* Query formatting
21-
* Macros support
21+
* Macros support
2222
* Additional functions
2323
* Table view
2424
* Annotations
2525
* BQ queries in variables
2626
* Sharded tables (`tablename_YYYYMMDD`)
2727
* Partitioned Tables
2828
* Granular slot allocation (Running queries in a project with flat-rate pricing)
29-
29+
3030
### Limitations:
3131

3232
* Alerts are not yet supported due to [#6841](https://github.com/grafana/grafana/issues/6841)
33-
33+
3434
**Plugin Demo:**
35-
35+
3636
![plugin demo](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/img/grafana-bigquery-demo.gif)
37-
38-
37+
38+
3939
## Adding the DataSource to Grafana
4040

4141
1. Open the side menu by clicking the Grafana icon in the top header.
@@ -64,15 +64,15 @@ datasources:
6464
access: proxy
6565
isDefault: true
6666
jsonData:
67-
authenticationType: jwt
68-
clientEmail: <Service Account Email>
69-
defaultProject: <Default Project Name>
70-
tokenUri: https://oauth2.googleapis.com/token
67+
authenticationType: jwt
68+
clientEmail: <Service Account Email>
69+
defaultProject: <Default Project Name>
70+
tokenUri: https://oauth2.googleapis.com/token
7171
secureJsonData:
72-
privateKey: |
73-
-----BEGIN PRIVATE KEY-----
74-
<Content of the Private Key>
75-
-----END PRIVATE KEY-----
72+
privateKey: |
73+
-----BEGIN PRIVATE KEY-----
74+
<Content of the Private Key>
75+
-----END PRIVATE KEY-----
7676
version: 2
7777
readOnly: false
7878
```
@@ -108,7 +108,7 @@ Go to [BigQuery API](https://console.cloud.google.com/apis/library/bigquery-json
108108
6. Upload it to Grafana on the datasource Configuration page. You can either upload the file or paste in the contents of the file.
109109

110110
![](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/img/bq__grafana_upload_key.png)
111-
111+
112112
7. The file contents will be encrypted and saved in the Grafana database. Don't forget to save after uploading the file!
113113

114114
![](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/img/bq_grafana_key_uploaded.png)

dist/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@
88
## Status: Production Ready
99
# BigQuery DataSource for Grafana
1010

11-
A BigQuery DataSource plugin provides support for [BigQuery](https://cloud.google.com/bigquery/) as a backend database.
11+
A BigQuery DataSource plugin provides support for [BigQuery](https://cloud.google.com/bigquery/) as a backend database.
1212

1313
### Quick Start
14-
There are multiple ways to install bigquery-grafana. See [INSTALL](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/INSTALL.md) for more information.
14+
There are multiple ways to install bigquery-grafana. See [INSTALL](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/INSTALL.md) for more information.
1515

1616
### Features:
1717

1818
* Query setup
1919
* Raw SQL editor
2020
* Query formatting
21-
* Macros support
21+
* Macros support
2222
* Additional functions
2323
* Table view
2424
* Annotations
2525
* BQ queries in variables
2626
* Sharded tables (`tablename_YYYYMMDD`)
2727
* Partitioned Tables
2828
* Granular slot allocation (Running queries in a project with flat-rate pricing)
29-
29+
3030
### Limitations:
3131

3232
* Alerts are not yet supported due to [#6841](https://github.com/grafana/grafana/issues/6841)
33-
33+
3434
**Plugin Demo:**
35-
35+
3636
![plugin demo](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/img/grafana-bigquery-demo.gif)
37-
38-
37+
38+
3939
## Adding the DataSource to Grafana
4040

4141
1. Open the side menu by clicking the Grafana icon in the top header.
@@ -64,15 +64,15 @@ datasources:
6464
access: proxy
6565
isDefault: true
6666
jsonData:
67-
authenticationType: jwt
68-
clientEmail: <Service Account Email>
69-
defaultProject: <Default Project Name>
70-
tokenUri: https://oauth2.googleapis.com/token
67+
authenticationType: jwt
68+
clientEmail: <Service Account Email>
69+
defaultProject: <Default Project Name>
70+
tokenUri: https://oauth2.googleapis.com/token
7171
secureJsonData:
72-
privateKey: |
73-
-----BEGIN PRIVATE KEY-----
74-
<Content of the Private Key>
75-
-----END PRIVATE KEY-----
72+
privateKey: |
73+
-----BEGIN PRIVATE KEY-----
74+
<Content of the Private Key>
75+
-----END PRIVATE KEY-----
7676
version: 2
7777
readOnly: false
7878
```
@@ -108,7 +108,7 @@ Go to [BigQuery API](https://console.cloud.google.com/apis/library/bigquery-json
108108
6. Upload it to Grafana on the datasource Configuration page. You can either upload the file or paste in the contents of the file.
109109

110110
![](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/img/bq__grafana_upload_key.png)
111-
111+
112112
7. The file contents will be encrypted and saved in the Grafana database. Don't forget to save after uploading the file!
113113

114114
![](https://raw.githubusercontent.com/doitintl/bigquery-grafana/master/img/bq_grafana_key_uploaded.png)
@@ -119,7 +119,7 @@ If Grafana is running on a Google Compute Engine (GCE) virtual machine, it is po
119119

120120
1. First of all, you need to create a Service Account that can be used by the GCE virtual machine. See detailed instructions on how to do that [here](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#createanewserviceaccount).
121121
2. Make sure the GCE virtual machine instance is being run as the service account that you just created. See instructions [here](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#using).
122-
3. Allow access to the `Stackdriver Monitoring API` scope. See instructions [here](changeserviceaccountandscopes).
122+
3. Allow access to the `BigQuery API` scope. See instructions [here](changeserviceaccountandscopes).
123123

124124
Read more about creating and enabling service accounts for GCE VM instances [here](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances).
125125

0 commit comments

Comments
 (0)