From: Florian Forster Date: Thu, 7 Dec 2017 13:17:20 +0000 (+0100) Subject: collectd.conf(5): Improve write_stackdriver documentation. X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=1c671085c3b5f42d852f143c986c6a2e268be5db collectd.conf(5): Improve write_stackdriver documentation. --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 7ff36b2c..b73ab681 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -10334,9 +10334,35 @@ B Path to a JSON credentials file holding the credentials for a GCP service account. -If not specified, I. If running on GCE, -B may be set to chose a different service account associated with the -instance. +If B is not specified, the plugin uses I. That means which credentials are used depends on the environment: + +=over 4 + +=item + +The environment variable C is checked. If this +variable is specified it should point to a JSON file that defines the +credentials. + +=item + +The patch C<${HOME}/.config/gcloud/application_default_credentials.json> is +checked. This where credentials used by the I command line utility are +stored. You can use C to create these +credentials. + +Please note that these credentials are often of your personal account, not a +service account, and are therefore unfit to be used in a production +environment. + +=item + +When running on GCE, the built-in service account associated with the virtual +machine instance is used. +See also the B option below. + +=back =item B I @@ -10348,11 +10374,17 @@ number. You can look up both on the I. This setting is optional. If not set, the project ID is read from the credentials file or determined from the GCE's metadata service. -=item B I +=item B I (GCE only) + +Choses the GCE I used for authentication. -Email address of an GCE I. This setting is only effective when -running on GCE and using I (see -B above). +Each GCE instance has a C I but may also be +associated with additional I. This is often used to restrict +the permissions of services running on the GCE instance to the required +minimum. The I requires the +C scope. When multiple I are available, this option selects which one is used by +I. =item B I @@ -10362,27 +10394,28 @@ takes a I and arbitrary string options which are used as labels. On GCE, defaults to the equivalent of this config: - project_id "${meta/project/project-id}" - instance_id "${meta/instance/id}" - zone "${meta/instance/zone}" + project_id "" + instance_id "" + zone "" -Where C<${meta/...}> are values read from the meta data service. +The values for I, I and I are read from the GCE +metadata service. When not running on GCE, defaults to the equivalent of this config: - project_id "${Project}" + project_id "" -Where C<${Project}> refers to the B option. +Where I refers to the value of the B option. See L for more information on I. =item B I -URL of the I API. Defaults to +URL of the I API. Defaults to C. =back