From 393c5e606f4cf9a2f64560e5f2a4efa96caeb3a4 Mon Sep 17 00:00:00 2001 From: "telegraf-tiger[bot]" <76974415+telegraf-tiger[bot]@users.noreply.github.com> Date: Fri, 10 Dec 2021 14:31:02 -0700 Subject: [PATCH] feat: update etc/telegraf.conf and etc/telegraf_windows.conf (#10237) --- etc/telegraf.conf | 76 +++++++++++++++++++++++++++++++++- etc/telegraf_windows.conf | 85 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 159 insertions(+), 2 deletions(-) diff --git a/etc/telegraf.conf b/etc/telegraf.conf index f74f58afcc8a7..1e7e91ab62df8 100644 --- a/etc/telegraf.conf +++ b/etc/telegraf.conf @@ -955,6 +955,27 @@ # ## Maximum amount of time before idle connection is closed. # ## Zero means no limit. # # idle_conn_timeout = 0 +# +# ## Amazon Region +# #region = "us-east-1" +# +# ## Amazon Credentials +# ## Credentials are loaded in the following order +# ## 1) Web identity provider credentials via STS if role_arn and web_identity_token_file are specified +# ## 2) Assumed credentials via STS if role_arn is specified +# ## 3) explicit credentials from 'access_key' and 'secret_key' +# ## 4) shared profile from 'profile' +# ## 5) environment variables +# ## 6) shared credentials file +# ## 7) EC2 Instance Profile +# #access_key = "" +# #secret_key = "" +# #token = "" +# #role_arn = "" +# #web_identity_token_file = "" +# #role_session_name = "" +# #profile = "" +# #shared_credential_file = "" # # Configuration for sending metrics to InfluxDB @@ -5224,7 +5245,7 @@ # # ## Define a request sent to the device # ## Multiple of those requests can be defined. Data will be collated into metrics at the end of data collection. -# [[inputs.modbus.request]] +# # [[inputs.modbus.request]] # ## ID of the modbus slave device to query. # ## If you need to query multiple slave-devices, create several "request" definitions. # # slave_id = 0 @@ -5270,6 +5291,11 @@ # # { address=3, name="motor1_overheating"}, # # ] # +# ## Per-request tags +# ## These tags take precedence over predefined tags. +# # [[inputs.modbus.request.tags]] +# # name = "value" +# # ## Holding / input example # ## All of those examples will result in FLOAT64 field outputs # # fields = [ @@ -5289,6 +5315,11 @@ # # { address=4, name="hours", type="UINT32" }, # will result in UIN64 field # # ] # +# ## Per-request tags +# ## These tags take precedence over predefined tags. +# # [[inputs.modbus.request.tags]] +# # name = "value" +# # # # ## Enable workarounds required by some devices to work correctly @@ -5695,6 +5726,20 @@ # # insecure_skip_verify = false +# # Read metrics from the Nomad API +# [[inputs.nomad]] +# ## URL for the Nomad agent +# # url = "http://127.0.0.1:4646" +# +# ## Set response_timeout (default 5 seconds) +# # response_timeout = "5s" +# +# ## Optional TLS Config +# # tls_ca = /path/to/cafile +# # tls_cert = /path/to/certfile +# # tls_key = /path/to/keyfile + + # # A plugin to collect stats from the NSD authoritative DNS name server # [[inputs.nsd]] # ## Address of server to connect to, optionally ':port'. Defaults to the @@ -6433,6 +6478,14 @@ # # ## Timeout for the cli command to complete. # # timeout = "30s" +# +# ## Optionally call smartctl and nvme-cli with a specific concurrency policy. +# ## By default, smartctl and nvme-cli are called in separate threads (goroutines) to gather disk attributes. +# ## Some devices (e.g. disks in RAID arrays) may have access limitations that require sequential reading of +# ## SMART data - one individual array drive at the time. In such case please set this configuration option +# ## to "sequential" to get readings for all drives. +# ## valid options: concurrent, sequential +# # read_method = "concurrent" # # Retrieves SNMP values from remote agents @@ -6895,6 +6948,27 @@ # # timeout = "1s" +# # Read metrics from the Vault API +# [[inputs.vault]] +# ## URL for the Vault agent +# # url = "http://127.0.0.1:8200" +# +# ## Use Vault token for authorization. +# ## Vault token configuration is mandatory. +# ## If both are empty or both are set, an error is thrown. +# # token_file = "/path/to/auth/token" +# ## OR +# token = "s.CDDrgg5zPv5ssI0Z2P4qxJj2" +# +# ## Set response_timeout (default 5 seconds) +# # response_timeout = "5s" +# +# ## Optional TLS Config +# # tls_ca = /path/to/cafile +# # tls_cert = /path/to/certfile +# # tls_key = /path/to/keyfile + + # # Collect Wireguard server interface and peer statistics # [[inputs.wireguard]] # ## Optional list of Wireguard device/interface names to query. diff --git a/etc/telegraf_windows.conf b/etc/telegraf_windows.conf index 0467414573214..d7d1cb871cd0d 100644 --- a/etc/telegraf_windows.conf +++ b/etc/telegraf_windows.conf @@ -676,6 +676,15 @@ # ## If set to true a unique ID hash will be sent as sha256(concat(timestamp,measurement,series-hash)) string # ## it will enable data resend and update metric points avoiding duplicated metrics with diferent id's # force_document_id = false +# +# ## Specifies the handling of NaN and Inf values. +# ## This option can have the following values: +# ## none -- do not modify field-values (default); will produce an error if NaNs or infs are encountered +# ## drop -- drop fields containing NaNs or infs +# ## replace -- replace with the value in "float_replacement_value" (default: 0.0) +# ## NaNs and inf will be replaced with the given number, -inf with the negative of that number +# # float_handling = "none" +# # float_replacement_value = 0.0 # # Configuration for Event Hubs output plugin @@ -946,6 +955,27 @@ # ## Maximum amount of time before idle connection is closed. # ## Zero means no limit. # # idle_conn_timeout = 0 +# +# ## Amazon Region +# #region = "us-east-1" +# +# ## Amazon Credentials +# ## Credentials are loaded in the following order +# ## 1) Web identity provider credentials via STS if role_arn and web_identity_token_file are specified +# ## 2) Assumed credentials via STS if role_arn is specified +# ## 3) explicit credentials from 'access_key' and 'secret_key' +# ## 4) shared profile from 'profile' +# ## 5) environment variables +# ## 6) shared credentials file +# ## 7) EC2 Instance Profile +# #access_key = "" +# #secret_key = "" +# #token = "" +# #role_arn = "" +# #web_identity_token_file = "" +# #role_session_name = "" +# #profile = "" +# #shared_credential_file = "" # # Configuration for sending metrics to InfluxDB @@ -5089,7 +5119,7 @@ # # ## Define a request sent to the device # ## Multiple of those requests can be defined. Data will be collated into metrics at the end of data collection. -# [[inputs.modbus.request]] +# # [[inputs.modbus.request]] # ## ID of the modbus slave device to query. # ## If you need to query multiple slave-devices, create several "request" definitions. # # slave_id = 0 @@ -5135,6 +5165,11 @@ # # { address=3, name="motor1_overheating"}, # # ] # +# ## Per-request tags +# ## These tags take precedence over predefined tags. +# # [[inputs.modbus.request.tags]] +# # name = "value" +# # ## Holding / input example # ## All of those examples will result in FLOAT64 field outputs # # fields = [ @@ -5154,6 +5189,11 @@ # # { address=4, name="hours", type="UINT32" }, # will result in UIN64 field # # ] # +# ## Per-request tags +# ## These tags take precedence over predefined tags. +# # [[inputs.modbus.request.tags]] +# # name = "value" +# # # # ## Enable workarounds required by some devices to work correctly @@ -5560,6 +5600,20 @@ # # insecure_skip_verify = false +# # Read metrics from the Nomad API +# [[inputs.nomad]] +# ## URL for the Nomad agent +# # url = "http://127.0.0.1:4646" +# +# ## Set response_timeout (default 5 seconds) +# # response_timeout = "5s" +# +# ## Optional TLS Config +# # tls_ca = /path/to/cafile +# # tls_cert = /path/to/certfile +# # tls_key = /path/to/keyfile + + # # A plugin to collect stats from the NSD authoritative DNS name server # [[inputs.nsd]] # ## Address of server to connect to, optionally ':port'. Defaults to the @@ -6281,6 +6335,14 @@ # # ## Timeout for the cli command to complete. # # timeout = "30s" +# +# ## Optionally call smartctl and nvme-cli with a specific concurrency policy. +# ## By default, smartctl and nvme-cli are called in separate threads (goroutines) to gather disk attributes. +# ## Some devices (e.g. disks in RAID arrays) may have access limitations that require sequential reading of +# ## SMART data - one individual array drive at the time. In such case please set this configuration option +# ## to "sequential" to get readings for all drives. +# ## valid options: concurrent, sequential +# # read_method = "concurrent" # # Retrieves SNMP values from remote agents @@ -6646,6 +6708,27 @@ # # timeout = "5s" +# # Read metrics from the Vault API +# [[inputs.vault]] +# ## URL for the Vault agent +# # url = "http://127.0.0.1:8200" +# +# ## Use Vault token for authorization. +# ## Vault token configuration is mandatory. +# ## If both are empty or both are set, an error is thrown. +# # token_file = "/path/to/auth/token" +# ## OR +# token = "s.CDDrgg5zPv5ssI0Z2P4qxJj2" +# +# ## Set response_timeout (default 5 seconds) +# # response_timeout = "5s" +# +# ## Optional TLS Config +# # tls_ca = /path/to/cafile +# # tls_cert = /path/to/certfile +# # tls_key = /path/to/keyfile + + # # Input plugin to collect Windows Event Log messages # [[inputs.win_eventlog]] # ## Telegraf should have Administrator permissions to subscribe for some Windows Events channels