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
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ You can follow the steps to enable it:
19
19
20
20
### Generate a JWT file & Assign IAM Permissions
21
21
22
-
1. If you don't have a GCP project, add a new GCP project. [link](https://cloud.google.com/resource-manager/docs/creating-managing-projects#console)
22
+
1. If you don't have a GCP project, add a new GCP project[here](https://cloud.google.com/resource-manager/docs/creating-managing-projects#console)
23
23
2. Open the [Credentials](https://console.developers.google.com/apis/credentials) page in the Google API Console
24
24
3. Click **Create Credentials** then click **Service account**
25
25
4. On the Create service account page, enter the Service account details
@@ -32,7 +32,7 @@ If you want to access logs in multiple cloud projects, you need to ensure the se
32
32
33
33
If you host Grafana on a GCE VM, you can also use the [Compute Engine service account](https://cloud.google.com/compute/docs/access/service-accounts#serviceaccount). You need to make sure the service account has sufficient permissions to access the scopes and logs in all projects.
34
34
35
-
Similar to [Prometheus data sources on Google Cloud](https://cloud.google.com/stackdriver/docs/managed-prometheus/query#use-serverless), you can also configure a scheduled job to use an OAuth2 access token to view the logs. Please follow the steps in the [data source syncer README](./datasource-syncer/README.md) to configure it.
35
+
Similar to [Prometheus data sources on Google Cloud](https://cloud.google.com/stackdriver/docs/managed-prometheus/query#use-serverless), you can also configure a scheduled job to use an OAuth2 access token to view the logs. Please follow the steps in the [data source syncer README](https://github.com/GoogleCloudPlatform/cloud-logging-data-source-plugin/blob/main/datasource-syncer/README.md) to configure it.
36
36
37
37
### Service account impersonation
38
38
You can also configure the plugin to use [service account impersonation](https://cloud.google.com/iam/docs/service-account-impersonation).
@@ -43,8 +43,8 @@ by this plugin needs logging read and project list permissions.
43
43
1. With Grafana restarted, navigate to `Configuration -> Data sources` (or the route `/datasources`)
44
44
2. Click "Add data source"
45
45
3. Select "Google Cloud Logging"
46
-
4. Provide credentials in a JWT file, either by using the file selector or pasting the contents of the file.
47
-
5. Click "Save & test" to test that logs can be queried from Cloud Logging.
46
+
4. Provide credentials from your JWT file, either by uploading it using the file selector or by pasting its contents directly into the designated field
47
+
5. Click "Save & test" to test that logs can be queried from Cloud Logging
Copy file name to clipboardExpand all lines: datasource-syncer/README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,9 +141,9 @@ and [Cloud Scheduler](https://cloud.google.com/scheduler), do the following:
141
141
142
142
```bash
143
143
# These values are required.
144
-
export GRAFANA_INSTANCE_URL=YOUR_GRAFANA_INSTANCE_URL # The Grafana instance URL from step 2. This is a URL. Include "http://" or "https://".
145
-
export GRAFANA_DATASOURCE_UID=YOUR_GRAFANA_DATASOURCE_UID # The Grafana data source UID from step 3. This is not a URL.
146
-
export GRAFANA_SERVICE_ACCOUNT_TOKEN=YOUR_GRAFANA_SERVICE_ACCOUNT_TOKEN # The Grafana service account token from step 4.
144
+
export GRAFANA_INSTANCE_URL=YOUR_GRAFANA_INSTANCE_URL # The Grafana instance URL from step 3. This is a URL. Include "http://" or "https://".
145
+
export GRAFANA_DATASOURCE_UID=YOUR_GRAFANA_DATASOURCE_UID # The Grafana data source UID from step 4. This is not a URL.
146
+
export GRAFANA_SERVICE_ACCOUNT_TOKEN=YOUR_GRAFANA_SERVICE_ACCOUNT_TOKEN # The Grafana service account token from step 5.
147
147
```
148
148
149
149
1. Create a secret in Secret Manager:
@@ -212,8 +212,11 @@ and [Cloud Scheduler](https://cloud.google.com/scheduler), do the following:
212
212
213
213
It can take up to 15 seconds for the data source to be updated.
214
214
215
-
1. Go to your newly configured Grafana data source and verify the **Access Token
216
-
** field has the value `configured` and the **Project ID** field has your cloud project id. You might have to refresh the page. Once verified, go to the bottom
215
+
1. Go to your newly configured Grafana data source and verify the **Access Token**
216
+
field has the value `configured` and the **Project ID** field displays the Google
217
+
Cloud Project ID you configured (e.g., the value of your ${PROJECT_ID} variable).
218
+
219
+
You might have to refresh the page. Once verified, go to the bottom
217
220
of the page, select**Save& test**, and ensure you see a green checkmark saying that
218
221
the datasource is properly configured. You need to select**Save& test** at
219
-
least once to ensure that label autocompletion in Grafana works.
222
+
least once to ensure that label autocompletion in Grafana works.
0 commit comments