From c612f707f4825a93ad8342e7e5c2311ab73e312e Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 11 Feb 2019 14:58:30 -0800 Subject: [PATCH] Comment out optional parameters to stackdriver output --- plugins/outputs/stackdriver/README.md | 18 ++++++++--------- plugins/outputs/stackdriver/stackdriver.go | 23 +++++++++++----------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/plugins/outputs/stackdriver/README.md b/plugins/outputs/stackdriver/README.md index 7c6e806bd..cdf0a1591 100644 --- a/plugins/outputs/stackdriver/README.md +++ b/plugins/outputs/stackdriver/README.md @@ -15,20 +15,20 @@ Additional resource labels can be configured by `resource_labels`. By default th ```toml [[outputs.stackdriver]] - # GCP Project + ## GCP Project project = "erudite-bloom-151019" - # The namespace for the metric descriptor + ## The namespace for the metric descriptor namespace = "telegraf" - # Custom resource type - resource_type = "generic_node" + ## Custom resource type + # resource_type = "generic_node" -# Additonal resource labels -[outputs.stackdriver.resource_labels] - node_id = "$HOSTNAME" - namespace = "myapp" - location = "eu-north0" + ## Additonal resource labels + # [outputs.stackdriver.resource_labels] + # node_id = "$HOSTNAME" + # namespace = "myapp" + # location = "eu-north0" ``` ### Restrictions diff --git a/plugins/outputs/stackdriver/stackdriver.go b/plugins/outputs/stackdriver/stackdriver.go index 096f77ff3..10823c8ed 100644 --- a/plugins/outputs/stackdriver/stackdriver.go +++ b/plugins/outputs/stackdriver/stackdriver.go @@ -49,21 +49,20 @@ const ( ) var sampleConfig = ` - [[outputs.stackdriver]] - # GCP Project - project = "erudite-bloom-151019" + ## GCP Project + project = "erudite-bloom-151019" - # The namespace for the metric descriptor - namespace = "telegraf" + ## The namespace for the metric descriptor + namespace = "telegraf" - # Custom resource type - resource_type = "generic_node" + ## Custom resource type + # resource_type = "generic_node" - # Additonal resource labels - [outputs.stackdriver.resource_labels] - node_id = "$HOSTNAME" - namespace = "myapp" - location = "eu-north0" + ## Additonal resource labels + # [outputs.stackdriver.resource_labels] + # node_id = "$HOSTNAME" + # namespace = "myapp" + # location = "eu-north0" ` // Connect initiates the primary connection to the GCP project.