You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 11, 2022. It is now read-only.
@@ -124,6 +120,42 @@ If Grafana is running on a Google Compute Engine (GCE) virtual machine, it is po
124
120
125
121
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).
126
122
123
+
### Using the Query Builder
124
+
The query builder provides a simple yet a user-friendly interface to help you quickly compose a query. The builder enables you to define the basic parts of your query, The common ones are:
125
+
1. The table you want to query from
126
+
2. The time field and metric field
127
+
3. WHERE clause - Either use one of the pre-defined macros, to speed your writing time, or set up your own expression. Existing supported Macros are:
128
+
129
+
a. Macro $__timeFiler with last 7 days example:
130
+
```
131
+
WHERE `createDate` BETWEEN TIMESTAMP_MILLIS (1592147699012) AND TIMESTAMP_MILLIS (1592752499012) AND _PARTITIONTIME >= '2020-06-14 18:14:59' AND _PARTITIONTIME < '2020-06-21 18:14:59'
132
+
```
133
+
b. Macro $__timeFrom with last 7 days example:
134
+
```
135
+
WHERE `createDate` > TIMESTAMP_MILLIS (1592223758609) AND _PARTITIONTIME >= '2020-06-15 15:22:38' AND _PARTITIONTIME < '2020-06-22 15:22:38'
136
+
```
137
+
c. Macro $__timeTo with last 7 days example:
138
+
```
139
+
WHERE `createDate` < TIMESTAMP_MILLIS (1592828659681) AND _PARTITIONTIME >= '2020-06-15 15:24:19' AND _PARTITIONTIME < '2020-06-22 15:24:19'
140
+
```
141
+
142
+
4. GROUP BY option - You can use a pre-defined macro or use one of the fields from your query
143
+
a. time ($__interval,none)
144
+
5. ORDER BY option
145
+
146
+
Note: If your processing location is not the Default US one set your location from the processing Location drop-down at the top right bottom of the query builder
147
+
148
+
### Troubleshooting
149
+
Viewing your Query
150
+
1. Use The Query Inspector located at the top of the query builder
[](https://github-tools.github.io/github-release-notes/)
8
9
## Status: Production Ready
9
10
# BigQuery DataSource for Grafana
10
11
@@ -27,10 +28,6 @@ There are multiple ways to install bigquery-grafana. See [INSTALL](https://doiti
27
28
* Partitioned Tables
28
29
* Granular slot allocation (Running queries in a project with flat-rate pricing)
29
30
30
-
### Limitations:
31
-
32
-
* Alerts are not yet supported due to [#6841](https://github.com/grafana/grafana/issues/6841)
0 commit comments