feat(go.d/snmp): enable table metrics by default (#20674)
Ilya Mashchenko committed
Jul 14, 2025 at 15:23 UTC
4993104307a5e5bb541a9496f793c62d4e4e1cdb
3 files changed
+17
-4
src/go/plugin/go.d/collector/snmp/collector.go
+3
-2
@@ -35,8 +35,9 @@ func init() {
35
func New() *Collector {
36
return &Collector{
37
Config: Config{
38
- CreateVnode: true,
39
- EnableProfiles: true,
38
+ CreateVnode: true,
39
+ EnableProfiles: true,
40
+ EnableProfilesTableMetrics: true,
41
Options: Options{
42
Port: 161,
43
Retries: 1,
src/go/plugin/go.d/collector/snmp/config_schema.json
+2
-2
@@ -351,9 +351,9 @@
351
},
352
"enable_profiles_table_metrics": {
353
"title": "Enable SNMP Table Metrics",
354
- "description": "Enable collection of SNMP table metrics from profiles. Enabling this may **increase collection time and memory usage** for devices with many network interfaces*",
354
+ "description": "Enable collection of SNMP table metrics from profiles. Enabling this may **increase collection time and memory usage** for devices with many network interfaces*.",
355
"type": "boolean",
356
- "default": false
356
+ "default": true
357
},
358
"disable_legacy_collection": {
359
"title": "Disable Legacy SNMP Collection",
src/go/plugin/go.d/collector/snmp/metadata.yaml
+12
@@ -93,6 +93,18 @@ modules:
93
description: Target ipv4 address.
94
default_value: ""
95
required: true
96
+ - name: enable_profiles
97
+ description: Enable collection of metrics using SNMP profiles.
98
+ default_value: "true"
99
+ required: false
100
+ - name: enable_profiles_table_metrics
101
+ description: Enable collection of SNMP table metrics from profiles. Enabling this may **increase collection time and memory usage** for devices with many network interfaces*.
102
+ default_value: "true"
103
+ required: false
104
+ - name: disable_legacy_collection
105
+ description: Disable the legacy SNMP collection method, forcing the collector to use only SNMP profiles (YAML-based configuration). When enabled, the collector will ignore any non-profile based collection logic.
106
+ default_value: "false"
107
+ required: false
108
- name: create_vnode
109
description: If set, the collector will create a Netdata Virtual Node for this SNMP device, which will appear as a separate Node in Netdata.
110
default_value: "true"