52 lines
1.9 KiB
Text
52 lines
1.9 KiB
Text
# Configuration for Google Cloud Stackdriver to send metrics to
|
|
[[outputs.stackdriver]]
|
|
## GCP Project
|
|
project = "erudite-bloom-151019"
|
|
|
|
## The namespace for the metric descriptor
|
|
## This is optional and users are encouraged to set the namespace as a
|
|
## resource label instead. If omitted it is not included in the metric name.
|
|
namespace = "telegraf"
|
|
|
|
## Metric Type Prefix
|
|
## The DNS name used with the metric type as a prefix.
|
|
# metric_type_prefix = "custom.googleapis.com"
|
|
|
|
## Metric Name Format
|
|
## Specifies the layout of the metric name, choose from:
|
|
## * path: 'metric_type_prefix_namespace_name_key'
|
|
## * official: 'metric_type_prefix/namespace_name_key/kind'
|
|
# metric_name_format = "path"
|
|
|
|
## Metric Data Type
|
|
## By default, telegraf will use whatever type the metric comes in as.
|
|
## However, for some use cases, forcing int64, may be preferred for values:
|
|
## * source: use whatever was passed in
|
|
## * double: preferred datatype to allow queries by PromQL.
|
|
# metric_data_type = "source"
|
|
|
|
## Tags as resource labels
|
|
## Tags defined in this option, when they exist, are added as a resource
|
|
## label and not included as a metric label. The values from tags override
|
|
## the values defined under the resource_labels config options.
|
|
# tags_as_resource_label = []
|
|
|
|
## Custom resource type
|
|
# resource_type = "generic_node"
|
|
|
|
## Override metric type by metric name
|
|
## Metric names matching the values here, globbing supported, will have the
|
|
## metric type set to the corresponding type.
|
|
# metric_counter = []
|
|
# metric_gauge = []
|
|
# metric_histogram = []
|
|
|
|
## NOTE: Due to the way TOML is parsed, tables must be at the END of the
|
|
## plugin definition, otherwise additional config options are read as part of
|
|
## the table
|
|
|
|
## Additional resource labels
|
|
# [outputs.stackdriver.resource_labels]
|
|
# node_id = "$HOSTNAME"
|
|
# namespace = "myapp"
|
|
# location = "eu-north0"
|