Skip to content

Commit c07ce27

Browse files
authored
feat: update Telegraf plugins to v1.22.0 (#4209)
1 parent e44b819 commit c07ce27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1116
-86
lines changed

src/writeData/components/telegrafInputPluginsConfigurationText/activemq.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
## ActiveMQ WebConsole URL
44
url = "http://127.0.0.1:8161"
55

6-
## Required ActiveMQ Endpoint
7-
## deprecated in 1.11; use the url option
8-
# server = "127.0.0.1"
9-
# port = 8161
10-
116
## Credentials for basic HTTP authentication
127
# username = "admin"
138
# password = "admin"

src/writeData/components/telegrafInputPluginsConfigurationText/aerospike.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# tls_ca = "/etc/telegraf/ca.pem"
1414
# tls_cert = "/etc/telegraf/cert.pem"
1515
# tls_key = "/etc/telegraf/key.pem"
16+
# tls_name = "tlsname"
1617
## If false, skip chain & host verification
1718
# insecure_skip_verify = true
1819

src/writeData/components/telegrafInputPluginsConfigurationText/amqp_consumer.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# AMQP consumer plugin
22
[[inputs.amqp_consumer]]
3-
## Broker to consume from.
4-
## deprecated in 1.7; use the brokers option
5-
# url = "amqp://localhost:5672/influxdb"
6-
73
## Brokers to consume from. If multiple brokers are specified a random broker
84
## will be selected anytime a connection is established. This can be
95
## helpful for load balancing when not using a dedicated load balancer.

src/writeData/components/telegrafInputPluginsConfigurationText/bond.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@
44
## If not specified, then default is /proc
55
# host_proc = "/proc"
66

7+
## Sets 'sys' directory path
8+
## If not specified, then default is /sys
9+
# host_sys = "/sys"
10+
711
## By default, telegraf gather stats for all bond interfaces
812
## Setting interfaces will restrict the stats to the specified
913
## bond interfaces.
1014
# bond_interfaces = ["bond0"]
15+
16+
## Tries to collect additional bond details from /sys/class/net/{bond}
17+
## currently only useful for LACP (mode 4) bonds
18+
# collect_sys_details = false
19+

src/writeData/components/telegrafInputPluginsConfigurationText/cassandra.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Read Cassandra metrics through Jolokia
22
[[inputs.cassandra]]
3+
## DEPRECATED: The 'cassandra' plugin is deprecated in version 1.7.0, use 'inputs.jolokia2' with the 'cassandra.conf' example configuration instead.
34
## DEPRECATED: The cassandra plugin has been deprecated. Please use the
45
## jolokia2 plugin instead.
56
##
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Read metrics from the Consul Agent API
2+
[[inputs.consul_agent]]
3+
## URL for the Consul agent
4+
# url = "http://127.0.0.1:8500"
5+
6+
## Use auth token for authorization.
7+
## Only one of the options can be set. Leave empty to not use any token.
8+
# token_file = "/path/to/auth/token"
9+
## OR
10+
# token = "a1234567-40c7-9048-7bae-378687048181"
11+
12+
## Set timeout (default 5 seconds)
13+
# timeout = "5s"
14+
15+
## Optional TLS Config
16+
# tls_ca = /path/to/cafile
17+
# tls_cert = /path/to/certfile
18+
# tls_key = /path/to/keyfile

src/writeData/components/telegrafInputPluginsConfigurationText/docker.conf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
## Set to true to collect Swarm metrics(desired_replicas, running_replicas)
99
gather_services = false
1010

11-
## Only collect metrics for these containers, collect all if empty
12-
container_names = []
13-
1411
## Set the source tag for the metrics to the container ID hostname, eg first 12 chars
1512
source_tag = false
1613

@@ -29,24 +26,11 @@
2926
## Timeout for docker list, info, and stats commands
3027
timeout = "5s"
3128

32-
## Whether to report for each container per-device blkio (8:0, 8:1...),
33-
## network (eth0, eth1, ...) and cpu (cpu0, cpu1, ...) stats or not.
34-
## Usage of this setting is discouraged since it will be deprecated in favor of 'perdevice_include'.
35-
## Default value is 'true' for backwards compatibility, please set it to 'false' so that 'perdevice_include' setting
36-
## is honored.
37-
perdevice = true
38-
3929
## Specifies for which classes a per-device metric should be issued
4030
## Possible values are 'cpu' (cpu0, cpu1, ...), 'blkio' (8:0, 8:1, ...) and 'network' (eth0, eth1, ...)
4131
## Please note that this setting has no effect if 'perdevice' is set to 'true'
4232
# perdevice_include = ["cpu"]
4333

44-
## Whether to report for each container total blkio and network stats or not.
45-
## Usage of this setting is discouraged since it will be deprecated in favor of 'total_include'.
46-
## Default value is 'false' for backwards compatibility, please set it to 'true' so that 'total_include' setting
47-
## is honored.
48-
total = false
49-
5034
## Specifies for which classes a total metric should be issued. Total is an aggregated of the 'perdevice' values.
5135
## Possible values are 'cpu', 'blkio' and 'network'
5236
## Total 'cpu' is reported directly by Docker daemon, and 'network' and 'blkio' totals are aggregated by this plugin.

src/writeData/components/telegrafInputPluginsConfigurationText/filecount.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Count files in a directory
22
[[inputs.filecount]]
3-
## Directory to gather stats about.
4-
## deprecated in 1.9; use the directories option
5-
# directory = "/var/cache/apt/archives"
6-
73
## Directories to gather stats about.
84
## This accept standard unit glob matching rules, but with the addition of
95
## ** as a "super asterisk". ie:

src/writeData/components/telegrafInputPluginsConfigurationText/gnmi.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,15 @@
5454

5555
## If suppression is enabled, send updates at least every X seconds anyway
5656
# heartbeat_interval = "60s"
57+
58+
#[[inputs.gnmi.subscription]]
59+
# name = "descr"
60+
# origin = "openconfig-interfaces"
61+
# path = "/interfaces/interface/state/description"
62+
# subscription_mode = "on_change"
63+
64+
## If tag_only is set, the subscription in question will be utilized to maintain a map of
65+
## tags to apply to other measurements emitted by the plugin, by matching path keys
66+
## All fields from the tag-only subscription will be applied as tags to other readings,
67+
## in the format <name>_<fieldBase>.
68+
# tag_only = true

src/writeData/components/telegrafInputPluginsConfigurationText/graylog.conf

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,25 @@
22
[[inputs.graylog]]
33
## API endpoint, currently supported API:
44
##
5-
## - multiple (Ex http://<host>:12900/system/metrics/multiple)
6-
## - namespace (Ex http://<host>:12900/system/metrics/namespace/{namespace})
5+
## - multiple (e.g. http://<host>:9000/api/system/metrics/multiple)
6+
## - namespace (e.g. http://<host>:9000/api/system/metrics/namespace/{namespace})
77
##
88
## For namespace endpoint, the metrics array will be ignored for that call.
99
## Endpoint can contain namespace and multiple type calls.
1010
##
11-
## Please check http://[graylog-server-ip]:12900/api-browser for full list
11+
## Please check http://[graylog-server-ip]:9000/api/api-browser for full list
1212
## of endpoints
1313
servers = [
14-
"http://[graylog-server-ip]:12900/system/metrics/multiple",
14+
"http://[graylog-server-ip]:9000/api/system/metrics/multiple",
1515
]
1616

17+
## Set timeout (default 5 seconds)
18+
# timeout = "5s"
19+
1720
## Metrics list
1821
## List of metrics can be found on Graylog webservice documentation.
19-
## Or by hitting the the web service api at:
20-
## http://[graylog-host]:12900/system/metrics
22+
## Or by hitting the web service api at:
23+
## http://[graylog-host]:9000/api/system/metrics
2124
metrics = [
2225
"jvm.cl.loaded",
2326
"jvm.memory.pools.Metaspace.committed"

0 commit comments

Comments
 (0)