Skip to content

Commit

Permalink
feat: update etc/telegraf.conf and etc/telegraf_windows.conf (influxd…
Browse files Browse the repository at this point in the history
  • Loading branch information
telegraf-tiger[bot] authored Dec 10, 2021
1 parent aa642a4 commit 393c5e6
Show file tree
Hide file tree
Showing 2 changed files with 159 additions and 2 deletions.
76 changes: 75 additions & 1 deletion etc/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = [
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
85 changes: 84 additions & 1 deletion etc/telegraf_windows.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = [
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 393c5e6

Please sign in to comment.