|
20 | 20 | # INPUT PLUGINS # |
21 | 21 | ############################################################################### |
22 | 22 |
|
23 | | -# Get CPU usage |
| 23 | +# Get CPU usage — only cpu-total, not per-core (reduces data volume on |
| 24 | +# many-CPU engines; agg_cpu automatically inherits this restriction). |
| 25 | +# percpu defaults to true so must be explicitly set to false. |
24 | 26 | [[inputs.cpu]] |
25 | | - percpu = true |
| 27 | + percpu = false |
26 | 28 | totalcpu = true |
27 | 29 | collect_cpu_time = false |
28 | 30 | report_active = false |
|
34 | 36 |
|
35 | 37 | # Get disk I/O stats, excluding ZFS zvol devices (zd*) which are internal |
36 | 38 | # ZFS block devices not useful for performance diagnostics. |
| 39 | +# wwid is a redundant 100+ char tag; the short-form name tag is sufficient. |
37 | 40 | [[inputs.diskio]] |
38 | 41 | tagdrop = {name = ["zd*"]} |
| 42 | + tagexclude = ["wwid"] |
39 | 43 |
|
40 | 44 | # Get Memory stats |
41 | 45 | [[inputs.mem]] |
|
44 | 48 | [[inputs.net]] |
45 | 49 | fieldpass = ["tcp*","bytes*","packets*","err*","drop*"] |
46 | 50 |
|
47 | | -# Per-connection TCP stats (bytes, RTT, window sizes) via connstat. |
48 | | -# Mirrors the TCP_STATS collected by the mgmt stack into analytics_datapoint. |
| 51 | +# Per-endpoint TCP stats (bytes, RTT, window sizes) via connstat. |
| 52 | +# Aggregated by remote endpoint (laddr:raddr:rport) to mirror the aggregation |
| 53 | +# in LocalTCPStatsCollector — avoids cardinality explosion on Oracle dNFS |
| 54 | +# engines (hundreds of connections per VDB host) and Elastic Data engines |
| 55 | +# (many connections per object storage endpoint IP). |
| 56 | +# Cumulative fields (inbytes, outbytes, etc.) are summed; window/RTT fields |
| 57 | +# are averaged; connections = number of TCP connections aggregated. |
49 | 58 | [[inputs.execd]] |
50 | 59 | command = ["/etc/telegraf/connstat-stats.sh"] |
51 | 60 | name_override = "tcp_stats" |
|
54 | 63 | data_format = "csv" |
55 | 64 | csv_delimiter = "," |
56 | 65 | csv_trim_space = true |
57 | | - csv_column_names = ["laddr", "lport", "raddr", "rport", "inbytes", "outbytes", "retranssegs", "suna", "unsent", "swnd", "cwnd", "rwnd", "rtt"] |
58 | | - csv_column_types = ["string", "int", "string", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int"] |
59 | | - csv_tag_columns = ["laddr", "lport", "raddr", "rport"] |
| 66 | + csv_column_names = ["laddr", "raddr", "rport", "service", "inbytes", "outbytes", "retranssegs", "suna", "unsent", "swnd", "cwnd", "rwnd", "rtt", "connections"] |
| 67 | + csv_column_types = ["string", "string", "int", "string", "int", "int", "int", "int", "int", "int", "int", "int", "int", "int"] |
| 68 | + csv_tag_columns = ["laddr", "raddr", "rport", "service"] |
60 | 69 |
|
61 | 70 | # Track CPU and Memory for the "delphix-mgmt" service (and children). |
62 | 71 | [[inputs.procstat]] |
|
79 | 88 | [[inputs.system]] |
80 | 89 |
|
81 | 90 | # ZFS kstats (arcstat, abdstat, zfetch, etc) |
| 91 | +# arcstats_l2_* fields are L2ARC stats — unused on all appliances (no L2ARC). |
82 | 92 | [[inputs.zfs]] |
83 | 93 | interval = "1m" |
| 94 | + fielddrop = ["arcstats_l2_*"] |
84 | 95 |
|
85 | 96 | # Detailed ZFS pool metrics from "zpool_influxdb" (noisy) |
86 | 97 | #[[inputs.exec]] |
|
0 commit comments