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
@@ -57,17 +65,43 @@ Add your authentication and [configuration details](https://docs.snowflake.com/e
57
65
58
66
Available configuration fields are as follows:
59
67
60
-
Name | Description
61
-
------------------------- | ------------
62
-
Account Name | Specifies the full name of your account (provided by Snowflake)
63
-
Username | Specifies the login name of the user for the connection.
64
-
Password | Specifies the password for the specified user.
65
-
Private key | Specifies the the private key. Must be encoded in base 64 URL encoded pkcs8.<br/>**Command :**<br/> `egrep -v '^(-----BEGIN PRIVATE KEY\|-----END PRIVATE KEY)' rsa_key.p8 \| tr -d '\n' \| sed 's/+/-/g; s/\//_/g' > rsa_key_urlbase64.p8`
66
-
Role (Optional) | Specifies the default access control role to use in the Snowflake session initiated by Grafana.
67
-
Warehouse (Optional) | Specifies the virtual warehouse to use once connected.
68
-
Database (Optional) | Specifies the default database to use once connected.
69
-
Schema (Optional) | Specifies the default schema to use for the specified database once connected.
70
-
Extra Options (Optional) | Specifies a series of one or more parameters, in the form of `<param>=<value>`, with each parameter separated by the ampersand character (&), and no spaces anywhere in the connection string.
| Account Name | Specifies the full name of your account (provided by Snowflake) |
71
+
| Username | Specifies the login name of the user for the connection. |
72
+
| Password | Specifies the password for the specified user. |
73
+
| Private key | Specifies the private key. |
74
+
| Client Id | Specifies the Oauth client ID. |
75
+
| Client Secret | Specifies the Oauth client Secret. |
76
+
| Token Endpoint | Specifies the Oauth Token endpoint. |
77
+
| Role (Optional) | Specifies the default access control role to use in the Snowflake session initiated by Grafana. With Oauth, it's used to limit the access token to a single role that the user can consent to for the session. |
78
+
| Warehouse (Optional) | Specifies the virtual warehouse to use once connected. |
79
+
| Database (Optional) | Specifies the default database to use once connected. |
80
+
| Schema (Optional) | Specifies the default schema to use for the specified database once connected. |
81
+
| Extra Options (Optional) | Specifies a series of one or more parameters, in the form of `<param>=<value>`, with each parameter separated by the ampersand character (&), and no spaces anywhere in the connection string. |
82
+
83
+
**External OAuth authentication**
84
+
85
+
> [!NOTE]
86
+
> Snowflake oauth authentication is not supported without external service (like Okta, Azure Entra, Keycloak ...) because of the lack of support for oauth Client credentials flow in snowflake.
> This plugin cannot identify malicious code in queries executed on Snowflake and assumes no responsibility for their execution. As a precaution, use a ROLE with minimal privileges, configured to grant read-only access
147
+
111
148
##### Query Variables
112
149
113
150
You can use query variable in your Snowflake queries by using [variable syntax](https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/).<br/>
@@ -187,13 +224,21 @@ GROUP BY
187
224
Annotations allow you to overlay events on a graph.
188
225
To create an annotation, in the dashboard settings click "Annotations", and "New".
189
226
227
+
#### Oauth Configuration
228
+
229
+
To use Oauth, you need to create an Oauth custom integration in your Snowflake account.<
230
+
You can follow the steps in the [Snowflake documentation](https://docs.snowflake.com/en/user-guide/oauth-custom).
231
+
190
232
## Caching
191
233
### Snowflake caching
192
234
193
235
Snowflake caches queries with the same footprint / hash in its own query-cache. Since a Grafana query mostly has a now() component the cache will never be used.
194
236
To get more queries with the same hash use the two macros `$__timeRoundFrom(d)` and `$__timeRoundTo(d)` to create wider truncated timestamps. This is no problem for timeseries charts. Grafana cuts it's x-Axis to the selected dashboard time window. If a table is displayed the whole result will be presented and it could be slightly out of the time window.\
195
237
More info about snowflake-side caching: https://docs.snowflake.com/en/user-guide/querying-persisted-results#retrieval-optimization
196
238
239
+
## Supported Grafana Versions
240
+
This plugin supports only version with [Active Support from Grafana](https://grafana.com/docs/grafana/next/upgrade-guide/when-to-upgrade/?pg=blog&plcmt=body-txt#what-to-know-about-version-support).
241
+
197
242
## Development
198
243
199
244
The snowflake datasource is a data source backend plugin composed of both frontend and backend components.
0 commit comments