From 0c07b0faa4c5b9dd486e36ceada4401c1a24b487 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 9 Dec 2017 07:37:35 +0100 Subject: [PATCH] write_stackdriver plugin: Use the "Label" option inside "Resource" blocks. The previous implementation was too surprising for users, which is not a good property for a config option. --- src/collectd.conf.in | 2 +- src/collectd.conf.pod | 40 +++++++++++++++++++++++++++------------- src/write_stackdriver.c | 21 +++++++++++---------- 3 files changed, 39 insertions(+), 24 deletions(-) diff --git a/src/collectd.conf.in b/src/collectd.conf.in index 184d0b93..94214759 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -1793,7 +1793,7 @@ # CredentialFile "/path/to/gcp-project-id-12345.json" # Email "123456789012@developer.gserviceaccount.com" # -# project_id "gcp-project-id" +# Label "project_id" "gcp-project-id" # # Url "https://monitoring.googleapis.com/v3" # diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index b73ab681..da8e8736 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -10323,7 +10323,7 @@ B CredentialFile "/path/to/service_account.json" - project_id "monitored_project" + Label "project_id" "monitored_project" @@ -10347,7 +10347,7 @@ credentials. =item -The patch C<${HOME}/.config/gcloud/application_default_credentials.json> is +The path 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. @@ -10388,30 +10388,44 @@ I. =item B I -Configures the I to use when storing metrics. This option -takes a I and arbitrary string options which are used as labels. +Configures the I to use when storing metrics. +More information on I and I are +available at L. -On GCE, defaults to the equivalent of this config: +This block takes one string argument, the I. Inside the block are +one or more B