Commit e2d1fc5b authored by Dominik Schulz's avatar Dominik Schulz

Address review comments

parent d251238e
...@@ -468,8 +468,8 @@ See below for the configuration options for GCE discovery: ...@@ -468,8 +468,8 @@ See below for the configuration options for GCE discovery:
# The GCP Project # The GCP Project
project: <string> project: <string>
# The Zone of the scrape targets. If you need multiple zones use multiple # The zone of the scrape targets. If you need multiple zones use multiple
# gce_sd_configs # gce_sd_configs.
zone: <string> zone: <string>
# Filter can be used optionally to filter the instance list by other criteria # Filter can be used optionally to filter the instance list by other criteria
...@@ -487,14 +487,14 @@ zone: <string> ...@@ -487,14 +487,14 @@ zone: <string>
``` ```
Credentials are discovered by the Google Cloud SDK default client by looking Credentials are discovered by the Google Cloud SDK default client by looking
in the following places, prefering the first location found: in the following places, preferring the first location found:
1. a JSON file specified by GOOGLE_APPLICATION_CREDENTIALS 1. a JSON file specified by the `GOOGLE_APPLICATION_CREDENTIALS` environment variable
2. a JSON file in a well known path, $HOME/.config/gcloud/application_default_credentials.json 2. a JSON file in the well-known path `$HOME/.config/gcloud/application_default_credentials.json`
3. fetched from the GCE Metadata server 3. fetched from the GCE metadata server
If prometheus is running within GCE the service account associated with the If Prometheus is running within GCE, the service account associated with the
instance it is running on should have at least read only permissions to the instance it is running on should have at least read-only permissions to the
compute resources. If running outside of GCE make sure to create an appropriate compute resources. If running outside of GCE make sure to create an appropriate
service account and place the credential file in one of the expected locations. service account and place the credential file in one of the expected locations.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment