Skip to content

Commit 941618f

Browse files
authored
feat: add new Telegraf plugins and update existing plugins (#5842)
1 parent 1df3744 commit 941618f

File tree

338 files changed

+6276
-3119
lines changed

Some content is hidden

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

338 files changed

+6276
-3119
lines changed

src/writeData/components/telegrafInputPluginsConfigurationText/activemq.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
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 = "192.168.50.10"
9+
# port = 8161
10+
611
## Credentials for basic HTTP authentication
712
# username = "admin"
813
# password = "admin"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Query statistics from AMD Graphics cards using rocm-smi binary
22
[[inputs.amd_rocm_smi]]
3-
## Optional: path to rocm-smi binary, defaults to $PATH via exec.LookPath
4-
# bin_path = "/opt/rocm/bin/rocm-smi"
3+
## Optional: path to rocm-smi binary, defaults to $PATH via exec.LookPath
4+
# bin_path = "/opt/rocm/bin/rocm-smi"
55

6-
## Optional: timeout for GPU polling
7-
# timeout = "5s"
6+
## Optional: timeout for GPU polling
7+
# timeout = "5s"

src/writeData/components/telegrafInputPluginsConfigurationText/bond.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@
1616
## Tries to collect additional bond details from /sys/class/net/{bond}
1717
## currently only useful for LACP (mode 4) bonds
1818
# collect_sys_details = false
19-

src/writeData/components/telegrafInputPluginsConfigurationText/cassandra.conf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1+
## DEPRECATED: The 'cassandra' plugin is deprecated in version 1.7.0, use 'inputs.jolokia2' with the 'cassandra.conf' example configuration instead.
12
# Read Cassandra metrics through Jolokia
23
[[inputs.cassandra]]
3-
## DEPRECATED: The 'cassandra' plugin is deprecated in version 1.7.0, use 'inputs.jolokia2' with the 'cassandra.conf' example configuration instead.
4-
## DEPRECATED: The cassandra plugin has been deprecated. Please use the
5-
## jolokia2 plugin instead.
6-
##
7-
## see https://github.com/influxdata/telegraf/tree/master/plugins/inputs/jolokia2
8-
94
context = "/jolokia/read"
105
## List of cassandra servers exposing jolokia read service
116
servers = ["myuser:mypassword@10.10.10.1:8778","10.10.10.2:8778",":8778"]

src/writeData/components/telegrafInputPluginsConfigurationText/cisco_telemetry_mdt.conf

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
## Address and port to host telemetry listener
88
service_address = ":57000"
99

10+
## Grpc Maximum Message Size, default is 4MB, increase the size.
11+
max_msg_size = 4000000
12+
1013
## Enable TLS; grpc transport only.
1114
# tls_cert = "/etc/telegraf/cert.pem"
1215
# tls_key = "/etc/telegraf/key.pem"
@@ -21,7 +24,17 @@
2124
## Define aliases to map telemetry encoding paths to simple measurement names
2225
[inputs.cisco_telemetry_mdt.aliases]
2326
ifstats = "ietf-interfaces:interfaces-state/interface/statistics"
24-
##Define Property Xformation, please refer README and https://pubhub.devnetcloud.com/media/dme-docs-9-3-3/docs/appendix/ for Model details.
27+
## Define Property Xformation, please refer README and https://pubhub.devnetcloud.com/media/dme-docs-9-3-3/docs/appendix/ for Model details.
2528
[inputs.cisco_telemetry_mdt.dmes]
26-
ModTs = "ignore"
27-
CreateTs = "ignore"
29+
# Global Property Xformation.
30+
# prop1 = "uint64 to int"
31+
# prop2 = "uint64 to string"
32+
# prop3 = "string to uint64"
33+
# prop4 = "string to int64"
34+
# prop5 = "string to float64"
35+
# auto-prop-xfrom = "auto-float-xfrom" #Xform any property which is string, and has float number to type float64
36+
# Per Path property xformation, Name is telemetry configuration under sensor-group, path configuration "WORD Distinguished Name"
37+
# Per Path configuration is better as it avoid property collision issue of types.
38+
# dnpath = '{"Name": "show ip route summary","prop": [{"Key": "routes","Value": "string"}, {"Key": "best-paths","Value": "string"}]}'
39+
# dnpath2 = '{"Name": "show processes cpu","prop": [{"Key": "kernel_percent","Value": "float"}, {"Key": "idle_percent","Value": "float"}, {"Key": "process","Value": "string"}, {"Key": "user_percent","Value": "float"}, {"Key": "onesec","Value": "float"}]}'
40+
# dnpath3 = '{"Name": "show processes memory physical","prop": [{"Key": "processname","Value": "string"}]}'

src/writeData/components/telegrafInputPluginsConfigurationText/cloud_pubsub.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# max_message_len = 1000000
3131

3232
## Optional. Maximum messages to read from PubSub that have not been written
33-
## to an output. Defaults to 1000.
33+
## to an output. Defaults to %d.
3434
## For best throughput set based on the number of metrics within
3535
## each message and the size of the output's metric_batch_size.
3636
##
@@ -69,5 +69,6 @@
6969
# max_receiver_go_routines = 0
7070

7171
## Optional. If true, Telegraf will attempt to base64 decode the
72-
## PubSub message data before parsing
72+
## PubSub message data before parsing. Many GCP services that
73+
## output JSON to Google PubSub base64-encode the JSON payload.
7374
# base64_data = false

src/writeData/components/telegrafInputPluginsConfigurationText/cloudwatch.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
## ex: endpoint_url = "http://localhost:8000"
2828
# endpoint_url = ""
2929

30-
## Set http_proxy (telegraf uses the system wide proxy settings if it's is not set)
30+
## Set http_proxy
31+
# use_system_proxy = false
3132
# http_proxy_url = "http://localhost:8888"
3233

3334
# The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# AWS Metric Streams listener
2+
[[inputs.cloudwatch_metric_streams]]
3+
## Address and port to host HTTP listener on
4+
service_address = ":443"
5+
6+
## Paths to listen to.
7+
# paths = ["/telegraf"]
8+
9+
## maximum duration before timing out read of the request
10+
# read_timeout = "10s"
11+
12+
## maximum duration before timing out write of the response
13+
# write_timeout = "10s"
14+
15+
## Maximum allowed http request body size in bytes.
16+
## 0 means to use the default of 524,288,000 bytes (500 mebibytes)
17+
# max_body_size = "500MB"
18+
19+
## Optional access key for Firehose security.
20+
# access_key = "test-key"
21+
22+
## An optional flag to keep Metric Streams metrics compatible with CloudWatch's API naming
23+
# api_compatability = false
24+
25+
## Set one or more allowed client CA certificate file names to
26+
## enable mutually authenticated TLS connections
27+
# tls_allowed_cacerts = ["/etc/telegraf/clientca.pem"]
28+
29+
## Add service certificate and key
30+
# tls_cert = "/etc/telegraf/cert.pem"
31+
# tls_key = "/etc/telegraf/key.pem"
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Collects conntrack stats from the configured directories and files.
22
[[inputs.conntrack]]
3-
## The following defaults would work with multiple versions of conntrack.
4-
## Note the nf_ and ip_ filename prefixes are mutually exclusive across
5-
## kernel versions, as are the directory locations.
3+
## The following defaults would work with multiple versions of conntrack.
4+
## Note the nf_ and ip_ filename prefixes are mutually exclusive across
5+
## kernel versions, as are the directory locations.
66

7-
## Superset of filenames to look for within the conntrack dirs.
8-
## Missing files will be ignored.
9-
files = ["ip_conntrack_count","ip_conntrack_max",
10-
"nf_conntrack_count","nf_conntrack_max"]
7+
## Superset of filenames to look for within the conntrack dirs.
8+
## Missing files will be ignored.
9+
files = ["ip_conntrack_count","ip_conntrack_max",
10+
"nf_conntrack_count","nf_conntrack_max"]
1111

12-
## Directories to search within for the conntrack files above.
13-
## Missing directories will be ignored.
14-
dirs = ["/proc/sys/net/ipv4/netfilter","/proc/sys/net/netfilter"]
12+
## Directories to search within for the conntrack files above.
13+
## Missing directories will be ignored.
14+
dirs = ["/proc/sys/net/ipv4/netfilter","/proc/sys/net/netfilter"]

src/writeData/components/telegrafInputPluginsConfigurationText/consul.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
# scheme = "http"
88

99
## Metric version controls the mapping from Consul metrics into
10-
## Telegraf metrics.
10+
## Telegraf metrics. Version 2 moved all fields with string values
11+
## to tags.
1112
##
12-
## example: metric_version = 1; deprecated in 1.15
13+
## example: metric_version = 1; deprecated in 1.16
1314
## metric_version = 2; recommended version
1415
# metric_version = 1
1516

0 commit comments

Comments
 (0)