docs: Update etc/telegraf.conf and etc/telegraf_windows.conf (#12194)

This commit is contained in:
telegraf-tiger[bot] 2022-11-08 18:43:17 +01:00 committed by GitHub
parent c30518d853
commit 674bea70fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 222 additions and 210 deletions

View File

@ -117,83 +117,57 @@
############################################################################### ###############################################################################
# Configuration for sending metrics to InfluxDB # # Configuration for sending metrics to InfluxDB 2.0
[[outputs.influxdb]] # [[outputs.influxdb_v2]]
## The full HTTP or UDP URL for your InfluxDB instance. # ## The URLs of the InfluxDB cluster nodes.
## # ##
## Multiple URLs can be specified for a single cluster, only ONE of the # ## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval. # ## urls will be written to each interval.
# urls = ["unix:///var/run/influxdb.sock"] # ## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
# urls = ["udp://127.0.0.1:8089"] # urls = ["http://127.0.0.1:8086"]
# urls = ["http://127.0.0.1:8086"] #
# ## Token for authentication.
## The target database for metrics; will be created as needed. # token = ""
## For UDP url endpoint database needs to be configured on server side. #
# database = "telegraf" # ## Organization is the name of the organization you wish to write to.
# organization = ""
## The value of this tag will be used to determine the database. If this #
## tag is not set the 'database' option is used as the default. # ## Destination bucket to write into.
# database_tag = "" # bucket = ""
#
## If true, the 'database_tag' will not be included in the written metric. # ## The value of this tag will be used to determine the bucket. If this
# exclude_database_tag = false # ## tag is not set the 'bucket' option is used as the default.
# # bucket_tag = ""
## If true, no CREATE DATABASE queries will be sent. Set to true when using #
## Telegraf with a user without permissions to create databases or when the # ## If true, the bucket tag will not be added to the metric.
## database already exists. # # exclude_bucket_tag = false
# skip_database_creation = false #
# ## Timeout for HTTP messages.
## Name of existing retention policy to write to. Empty string writes to # # timeout = "5s"
## the default retention policy. Only takes effect when using HTTP. #
# retention_policy = "" # ## Additional HTTP headers
# # http_headers = {"X-Special-Header" = "Special-Value"}
## The value of this tag will be used to determine the retention policy. If this #
## tag is not set the 'retention_policy' option is used as the default. # ## HTTP Proxy override, if unset values the standard proxy environment
# retention_policy_tag = "" # ## variables are consulted to determine which proxy, if any, should be used.
# # http_proxy = "http://corporate.proxy:3128"
## If true, the 'retention_policy_tag' will not be included in the written metric. #
# exclude_retention_policy_tag = false # ## HTTP User-Agent
# # user_agent = "telegraf"
## Write consistency (clusters only), can be: "any", "one", "quorum", "all". #
## Only takes effect when using HTTP. # ## Content-Encoding for write request body, can be set to "gzip" to
# write_consistency = "any" # ## compress body or "identity" to apply no encoding.
# # content_encoding = "gzip"
## Timeout for HTTP messages. #
# timeout = "5s" # ## Enable or disable uint support for writing uints influxdb 2.0.
# # influx_uint_support = false
## HTTP Basic Auth #
# username = "telegraf" # ## Optional TLS Config for use on HTTP connections.
# password = "metricsmetricsmetricsmetrics" # # tls_ca = "/etc/telegraf/ca.pem"
# # tls_cert = "/etc/telegraf/cert.pem"
## HTTP User-Agent # # tls_key = "/etc/telegraf/key.pem"
# user_agent = "telegraf" # ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false
## UDP payload size is the maximum packet size to send.
# udp_payload = "512B"
## Optional TLS Config for use on HTTP connections.
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
## HTTP Proxy override, if unset values the standard proxy environment
## variables are consulted to determine which proxy, if any, should be used.
# http_proxy = "http://corporate.proxy:3128"
## Additional HTTP headers
# http_headers = {"X-Special-Header" = "Special-Value"}
## HTTP Content-Encoding for write request body, can be set to "gzip" to
## compress body or "identity" to apply no encoding.
# content_encoding = "gzip"
## When true, Telegraf will output unsigned integers as unsigned values,
## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
## integer values. Enabling this option will result in field type errors if
## existing data has been written.
# influx_uint_support = false
# # Configuration for Amon Server to send metrics to. # # Configuration for Amon Server to send metrics to.
@ -1075,50 +1049,59 @@
# # non_retryable_statuscodes = [409, 413] # # non_retryable_statuscodes = [409, 413]
# # Configuration for sending metrics to InfluxDB 2.0 # # Configuration for sending metrics to InfluxDB
# [[outputs.influxdb_v2]] # [[outputs.influxdb]]
# ## The URLs of the InfluxDB cluster nodes. # ## The full HTTP or UDP URL for your InfluxDB instance.
# ## # ##
# ## Multiple URLs can be specified for a single cluster, only ONE of the # ## Multiple URLs can be specified for a single cluster, only ONE of the
# ## urls will be written to each interval. # ## urls will be written to each interval.
# ## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"] # # urls = ["unix:///var/run/influxdb.sock"]
# urls = ["http://127.0.0.1:8086"] # # urls = ["udp://127.0.0.1:8089"]
# # urls = ["http://127.0.0.1:8086"]
# #
# ## Token for authentication. # ## The target database for metrics; will be created as needed.
# token = "" # ## For UDP url endpoint database needs to be configured on server side.
# # database = "telegraf"
# #
# ## Organization is the name of the organization you wish to write to. # ## The value of this tag will be used to determine the database. If this
# organization = "" # ## tag is not set the 'database' option is used as the default.
# # database_tag = ""
# #
# ## Destination bucket to write into. # ## If true, the 'database_tag' will not be included in the written metric.
# bucket = "" # # exclude_database_tag = false
# #
# ## The value of this tag will be used to determine the bucket. If this # ## If true, no CREATE DATABASE queries will be sent. Set to true when using
# ## tag is not set the 'bucket' option is used as the default. # ## Telegraf with a user without permissions to create databases or when the
# # bucket_tag = "" # ## database already exists.
# # skip_database_creation = false
# #
# ## If true, the bucket tag will not be added to the metric. # ## Name of existing retention policy to write to. Empty string writes to
# # exclude_bucket_tag = false # ## the default retention policy. Only takes effect when using HTTP.
# # retention_policy = ""
#
# ## The value of this tag will be used to determine the retention policy. If this
# ## tag is not set the 'retention_policy' option is used as the default.
# # retention_policy_tag = ""
#
# ## If true, the 'retention_policy_tag' will not be included in the written metric.
# # exclude_retention_policy_tag = false
#
# ## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
# ## Only takes effect when using HTTP.
# # write_consistency = "any"
# #
# ## Timeout for HTTP messages. # ## Timeout for HTTP messages.
# # timeout = "5s" # # timeout = "5s"
# #
# ## Additional HTTP headers # ## HTTP Basic Auth
# # http_headers = {"X-Special-Header" = "Special-Value"} # # username = "telegraf"
# # # password = "metricsmetricsmetricsmetrics"
# ## HTTP Proxy override, if unset values the standard proxy environment
# ## variables are consulted to determine which proxy, if any, should be used.
# # http_proxy = "http://corporate.proxy:3128"
# #
# ## HTTP User-Agent # ## HTTP User-Agent
# # user_agent = "telegraf" # # user_agent = "telegraf"
# #
# ## Content-Encoding for write request body, can be set to "gzip" to # ## UDP payload size is the maximum packet size to send.
# ## compress body or "identity" to apply no encoding. # # udp_payload = "512B"
# # content_encoding = "gzip"
#
# ## Enable or disable uint support for writing uints influxdb 2.0.
# # influx_uint_support = false
# #
# ## Optional TLS Config for use on HTTP connections. # ## Optional TLS Config for use on HTTP connections.
# # tls_ca = "/etc/telegraf/ca.pem" # # tls_ca = "/etc/telegraf/ca.pem"
@ -1126,6 +1109,23 @@
# # tls_key = "/etc/telegraf/key.pem" # # tls_key = "/etc/telegraf/key.pem"
# ## Use TLS but skip chain & host verification # ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false # # insecure_skip_verify = false
#
# ## HTTP Proxy override, if unset values the standard proxy environment
# ## variables are consulted to determine which proxy, if any, should be used.
# # http_proxy = "http://corporate.proxy:3128"
#
# ## Additional HTTP headers
# # http_headers = {"X-Special-Header" = "Special-Value"}
#
# ## HTTP Content-Encoding for write request body, can be set to "gzip" to
# ## compress body or "identity" to apply no encoding.
# # content_encoding = "gzip"
#
# ## When true, Telegraf will output unsigned integers as unsigned values,
# ## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
# ## integer values. Enabling this option will result in field type errors if
# ## existing data has been written.
# # influx_uint_support = false
# # Configuration for sending metrics to an Instrumental project # # Configuration for sending metrics to an Instrumental project
@ -9523,6 +9523,12 @@
# ## "source" -- uses the timestamp provided by the source # ## "source" -- uses the timestamp provided by the source
# # timestamp = "gather" # # timestamp = "gather"
# # # #
# ## The default timetsamp format is RFC3339Nano
# # Other timestamp layouts can be configured using the Go language time
# # layout specification from https://golang.org/pkg/time/#Time.Format
# # e.g.: json_timestamp_format = "2006-01-02T15:04:05Z07:00"
# #timestamp_format = ""
# #
# ## Node ID configuration # ## Node ID configuration
# ## name - field name to use in the output # ## name - field name to use in the output
# ## namespace - OPC UA namespace of the node (integer value 0 thru 3) # ## namespace - OPC UA namespace of the node (integer value 0 thru 3)

View File

@ -117,83 +117,57 @@
############################################################################### ###############################################################################
# Configuration for sending metrics to InfluxDB # # Configuration for sending metrics to InfluxDB 2.0
[[outputs.influxdb]] # [[outputs.influxdb_v2]]
## The full HTTP or UDP URL for your InfluxDB instance. # ## The URLs of the InfluxDB cluster nodes.
## # ##
## Multiple URLs can be specified for a single cluster, only ONE of the # ## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval. # ## urls will be written to each interval.
# urls = ["unix:///var/run/influxdb.sock"] # ## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
# urls = ["udp://127.0.0.1:8089"] # urls = ["http://127.0.0.1:8086"]
# urls = ["http://127.0.0.1:8086"] #
# ## Token for authentication.
## The target database for metrics; will be created as needed. # token = ""
## For UDP url endpoint database needs to be configured on server side. #
# database = "telegraf" # ## Organization is the name of the organization you wish to write to.
# organization = ""
## The value of this tag will be used to determine the database. If this #
## tag is not set the 'database' option is used as the default. # ## Destination bucket to write into.
# database_tag = "" # bucket = ""
#
## If true, the 'database_tag' will not be included in the written metric. # ## The value of this tag will be used to determine the bucket. If this
# exclude_database_tag = false # ## tag is not set the 'bucket' option is used as the default.
# # bucket_tag = ""
## If true, no CREATE DATABASE queries will be sent. Set to true when using #
## Telegraf with a user without permissions to create databases or when the # ## If true, the bucket tag will not be added to the metric.
## database already exists. # # exclude_bucket_tag = false
# skip_database_creation = false #
# ## Timeout for HTTP messages.
## Name of existing retention policy to write to. Empty string writes to # # timeout = "5s"
## the default retention policy. Only takes effect when using HTTP. #
# retention_policy = "" # ## Additional HTTP headers
# # http_headers = {"X-Special-Header" = "Special-Value"}
## The value of this tag will be used to determine the retention policy. If this #
## tag is not set the 'retention_policy' option is used as the default. # ## HTTP Proxy override, if unset values the standard proxy environment
# retention_policy_tag = "" # ## variables are consulted to determine which proxy, if any, should be used.
# # http_proxy = "http://corporate.proxy:3128"
## If true, the 'retention_policy_tag' will not be included in the written metric. #
# exclude_retention_policy_tag = false # ## HTTP User-Agent
# # user_agent = "telegraf"
## Write consistency (clusters only), can be: "any", "one", "quorum", "all". #
## Only takes effect when using HTTP. # ## Content-Encoding for write request body, can be set to "gzip" to
# write_consistency = "any" # ## compress body or "identity" to apply no encoding.
# # content_encoding = "gzip"
## Timeout for HTTP messages. #
# timeout = "5s" # ## Enable or disable uint support for writing uints influxdb 2.0.
# # influx_uint_support = false
## HTTP Basic Auth #
# username = "telegraf" # ## Optional TLS Config for use on HTTP connections.
# password = "metricsmetricsmetricsmetrics" # # tls_ca = "/etc/telegraf/ca.pem"
# # tls_cert = "/etc/telegraf/cert.pem"
## HTTP User-Agent # # tls_key = "/etc/telegraf/key.pem"
# user_agent = "telegraf" # ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false
## UDP payload size is the maximum packet size to send.
# udp_payload = "512B"
## Optional TLS Config for use on HTTP connections.
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
## HTTP Proxy override, if unset values the standard proxy environment
## variables are consulted to determine which proxy, if any, should be used.
# http_proxy = "http://corporate.proxy:3128"
## Additional HTTP headers
# http_headers = {"X-Special-Header" = "Special-Value"}
## HTTP Content-Encoding for write request body, can be set to "gzip" to
## compress body or "identity" to apply no encoding.
# content_encoding = "gzip"
## When true, Telegraf will output unsigned integers as unsigned values,
## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
## integer values. Enabling this option will result in field type errors if
## existing data has been written.
# influx_uint_support = false
# # Configuration for Amon Server to send metrics to. # # Configuration for Amon Server to send metrics to.
@ -1075,50 +1049,59 @@
# # non_retryable_statuscodes = [409, 413] # # non_retryable_statuscodes = [409, 413]
# # Configuration for sending metrics to InfluxDB 2.0 # # Configuration for sending metrics to InfluxDB
# [[outputs.influxdb_v2]] # [[outputs.influxdb]]
# ## The URLs of the InfluxDB cluster nodes. # ## The full HTTP or UDP URL for your InfluxDB instance.
# ## # ##
# ## Multiple URLs can be specified for a single cluster, only ONE of the # ## Multiple URLs can be specified for a single cluster, only ONE of the
# ## urls will be written to each interval. # ## urls will be written to each interval.
# ## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"] # # urls = ["unix:///var/run/influxdb.sock"]
# urls = ["http://127.0.0.1:8086"] # # urls = ["udp://127.0.0.1:8089"]
# # urls = ["http://127.0.0.1:8086"]
# #
# ## Token for authentication. # ## The target database for metrics; will be created as needed.
# token = "" # ## For UDP url endpoint database needs to be configured on server side.
# # database = "telegraf"
# #
# ## Organization is the name of the organization you wish to write to. # ## The value of this tag will be used to determine the database. If this
# organization = "" # ## tag is not set the 'database' option is used as the default.
# # database_tag = ""
# #
# ## Destination bucket to write into. # ## If true, the 'database_tag' will not be included in the written metric.
# bucket = "" # # exclude_database_tag = false
# #
# ## The value of this tag will be used to determine the bucket. If this # ## If true, no CREATE DATABASE queries will be sent. Set to true when using
# ## tag is not set the 'bucket' option is used as the default. # ## Telegraf with a user without permissions to create databases or when the
# # bucket_tag = "" # ## database already exists.
# # skip_database_creation = false
# #
# ## If true, the bucket tag will not be added to the metric. # ## Name of existing retention policy to write to. Empty string writes to
# # exclude_bucket_tag = false # ## the default retention policy. Only takes effect when using HTTP.
# # retention_policy = ""
#
# ## The value of this tag will be used to determine the retention policy. If this
# ## tag is not set the 'retention_policy' option is used as the default.
# # retention_policy_tag = ""
#
# ## If true, the 'retention_policy_tag' will not be included in the written metric.
# # exclude_retention_policy_tag = false
#
# ## Write consistency (clusters only), can be: "any", "one", "quorum", "all".
# ## Only takes effect when using HTTP.
# # write_consistency = "any"
# #
# ## Timeout for HTTP messages. # ## Timeout for HTTP messages.
# # timeout = "5s" # # timeout = "5s"
# #
# ## Additional HTTP headers # ## HTTP Basic Auth
# # http_headers = {"X-Special-Header" = "Special-Value"} # # username = "telegraf"
# # # password = "metricsmetricsmetricsmetrics"
# ## HTTP Proxy override, if unset values the standard proxy environment
# ## variables are consulted to determine which proxy, if any, should be used.
# # http_proxy = "http://corporate.proxy:3128"
# #
# ## HTTP User-Agent # ## HTTP User-Agent
# # user_agent = "telegraf" # # user_agent = "telegraf"
# #
# ## Content-Encoding for write request body, can be set to "gzip" to # ## UDP payload size is the maximum packet size to send.
# ## compress body or "identity" to apply no encoding. # # udp_payload = "512B"
# # content_encoding = "gzip"
#
# ## Enable or disable uint support for writing uints influxdb 2.0.
# # influx_uint_support = false
# #
# ## Optional TLS Config for use on HTTP connections. # ## Optional TLS Config for use on HTTP connections.
# # tls_ca = "/etc/telegraf/ca.pem" # # tls_ca = "/etc/telegraf/ca.pem"
@ -1126,6 +1109,23 @@
# # tls_key = "/etc/telegraf/key.pem" # # tls_key = "/etc/telegraf/key.pem"
# ## Use TLS but skip chain & host verification # ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false # # insecure_skip_verify = false
#
# ## HTTP Proxy override, if unset values the standard proxy environment
# ## variables are consulted to determine which proxy, if any, should be used.
# # http_proxy = "http://corporate.proxy:3128"
#
# ## Additional HTTP headers
# # http_headers = {"X-Special-Header" = "Special-Value"}
#
# ## HTTP Content-Encoding for write request body, can be set to "gzip" to
# ## compress body or "identity" to apply no encoding.
# # content_encoding = "gzip"
#
# ## When true, Telegraf will output unsigned integers as unsigned values,
# ## i.e.: "42u". You will need a version of InfluxDB supporting unsigned
# ## integer values. Enabling this option will result in field type errors if
# ## existing data has been written.
# # influx_uint_support = false
# # Configuration for sending metrics to an Instrumental project # # Configuration for sending metrics to an Instrumental project
@ -9340,6 +9340,12 @@
# ## "source" -- uses the timestamp provided by the source # ## "source" -- uses the timestamp provided by the source
# # timestamp = "gather" # # timestamp = "gather"
# # # #
# ## The default timetsamp format is RFC3339Nano
# # Other timestamp layouts can be configured using the Go language time
# # layout specification from https://golang.org/pkg/time/#Time.Format
# # e.g.: json_timestamp_format = "2006-01-02T15:04:05Z07:00"
# #timestamp_format = ""
# #
# ## Node ID configuration # ## Node ID configuration
# ## name - field name to use in the output # ## name - field name to use in the output
# ## namespace - OPC UA namespace of the node (integer value 0 thru 3) # ## namespace - OPC UA namespace of the node (integer value 0 thru 3)