Comment out optional parameters to stackdriver output
This commit is contained in:
parent
412a7996e1
commit
c612f707f4
|
@ -15,20 +15,20 @@ Additional resource labels can be configured by `resource_labels`. By default th
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[outputs.stackdriver]]
|
[[outputs.stackdriver]]
|
||||||
# GCP Project
|
## GCP Project
|
||||||
project = "erudite-bloom-151019"
|
project = "erudite-bloom-151019"
|
||||||
|
|
||||||
# The namespace for the metric descriptor
|
## The namespace for the metric descriptor
|
||||||
namespace = "telegraf"
|
namespace = "telegraf"
|
||||||
|
|
||||||
# Custom resource type
|
## Custom resource type
|
||||||
resource_type = "generic_node"
|
# resource_type = "generic_node"
|
||||||
|
|
||||||
# Additonal resource labels
|
## Additonal resource labels
|
||||||
[outputs.stackdriver.resource_labels]
|
# [outputs.stackdriver.resource_labels]
|
||||||
node_id = "$HOSTNAME"
|
# node_id = "$HOSTNAME"
|
||||||
namespace = "myapp"
|
# namespace = "myapp"
|
||||||
location = "eu-north0"
|
# location = "eu-north0"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Restrictions
|
### Restrictions
|
||||||
|
|
|
@ -49,21 +49,20 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var sampleConfig = `
|
var sampleConfig = `
|
||||||
[[outputs.stackdriver]]
|
## GCP Project
|
||||||
# GCP Project
|
project = "erudite-bloom-151019"
|
||||||
project = "erudite-bloom-151019"
|
|
||||||
|
|
||||||
# The namespace for the metric descriptor
|
## The namespace for the metric descriptor
|
||||||
namespace = "telegraf"
|
namespace = "telegraf"
|
||||||
|
|
||||||
# Custom resource type
|
## Custom resource type
|
||||||
resource_type = "generic_node"
|
# resource_type = "generic_node"
|
||||||
|
|
||||||
# Additonal resource labels
|
## Additonal resource labels
|
||||||
[outputs.stackdriver.resource_labels]
|
# [outputs.stackdriver.resource_labels]
|
||||||
node_id = "$HOSTNAME"
|
# node_id = "$HOSTNAME"
|
||||||
namespace = "myapp"
|
# namespace = "myapp"
|
||||||
location = "eu-north0"
|
# location = "eu-north0"
|
||||||
`
|
`
|
||||||
|
|
||||||
// Connect initiates the primary connection to the GCP project.
|
// Connect initiates the primary connection to the GCP project.
|
||||||
|
|
Loading…
Reference in New Issue