update units in _generic-if.yaml (#20523)
Ilya Mashchenko committed
Jun 19, 2025 at 09:25 UTC
079c5ff7c1597ee54ba9ab8a364abbf99d47b0f9
1 file changed
+17
-23
src/go/plugin/go.d/config/go.d/snmp.profiles/default/_generic-if.yaml
+17
-23
@@ -14,28 +14,26 @@ metrics:
14
OID: 1.3.6.1.2.1.2.2
15
name: ifTable
16
symbols:
17
- # Counters that will be inferred as rate type from PDU
17
- OID: 1.3.6.1.2.1.2.2.1.14
18
name: ifInErrors
19
description: Number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol
20
family: Interfaces/Errors
22
- unit: "{error}"
21
+ unit: "{error}/s"
22
- OID: 1.3.6.1.2.1.2.2.1.20
23
name: ifOutErrors
24
description: Number of outbound packets that could not be transmitted because of errors
25
family: Interfaces/Errors
27
- unit: "{error}"
26
+ unit: "{error}/s"
27
- OID: 1.3.6.1.2.1.2.2.1.13
28
name: ifInDiscards
29
description: Number of inbound packets chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol
30
family: Interfaces/Discards
32
- unit: "{discard}"
31
+ unit: "{discard}/s"
32
- OID: 1.3.6.1.2.1.2.2.1.19
33
name: ifOutDiscards
34
description: Number of outbound packets chosen to be discarded even though no errors had been detected to prevent their being transmitted
35
family: Interfaces/Discards
37
- unit: "{discard}"
38
- # Gauges that will be inferred from PDU type
36
+ unit: "{discard}/s"
37
- OID: 1.3.6.1.2.1.2.2.1.7
38
name: ifAdminStatus
39
description: Current administrative state of the interface
@@ -58,11 +56,6 @@ metrics:
56
5: dormant
57
6: notPresent
58
7: lowerLayerDown
61
- - OID: 1.3.6.1.2.1.2.2.1.5
62
- name: ifSpeed
63
- description: Estimate of the interface's current bandwidth in bits per second
64
- family: Interfaces/Speed
65
- unit: "bit/s"
59
metric_tags:
60
- tag: interface
61
table: ifXTable
@@ -83,53 +76,54 @@ metrics:
76
OID: 1.3.6.1.2.1.31.1.1
77
name: ifXTable
78
symbols:
86
- # Counters that will be inferred as rate type from PDU
79
- OID: 1.3.6.1.2.1.31.1.1.1.6
80
name: ifHCInOctets
81
description: Total number of octets received on the interface including framing characters
82
family: Interfaces/Traffic
91
- unit: "By"
83
+ scale_factor: 8 # octets => bits
84
+ unit: "bit/s"
85
- OID: 1.3.6.1.2.1.31.1.1.1.10
86
name: ifHCOutOctets
87
description: Total number of octets transmitted out of the interface including framing characters
88
family: Interfaces/Traffic
96
- unit: "By"
89
+ scale_factor: 8 # octets => bits
90
+ unit: "bit/s"
91
- OID: 1.3.6.1.2.1.31.1.1.1.7
92
name: ifHCInUcastPkts
93
description: Number of packets delivered by this sub-layer to a higher layer which were not addressed to a multicast or broadcast address
94
family: Interfaces/Packets/Unicast
101
- unit: "{packet}"
95
+ unit: "{packet}/s"
96
- OID: 1.3.6.1.2.1.31.1.1.1.8
97
name: ifHCInMulticastPkts
98
description: Number of packets delivered by this sub-layer to a higher layer which were addressed to a multicast address
99
family: Interfaces/Packets/Multicast
106
- unit: "{packet}"
100
+ unit: "{packet}/s"
101
- OID: 1.3.6.1.2.1.31.1.1.1.9
102
name: ifHCInBroadcastPkts
103
description: Number of packets delivered by this sub-layer to a higher layer which were addressed to a broadcast address
104
family: Interfaces/Packets/Broadcast
111
- unit: "{packet}"
105
+ unit: "{packet}/s"
106
- OID: 1.3.6.1.2.1.31.1.1.1.11
107
name: ifHCOutUcastPkts
108
description: Total number of packets that higher-level protocols requested be transmitted and which were not addressed to a multicast or broadcast address
109
family: Interfaces/Packets/Unicast
116
- unit: "{packet}"
110
+ unit: "{packet}/s"
111
- OID: 1.3.6.1.2.1.31.1.1.1.12
112
name: ifHCOutMulticastPkts
113
description: Total number of packets that higher-level protocols requested be transmitted and which were addressed to a multicast address
114
family: Interfaces/Packets/Multicast
121
- unit: "{packet}"
115
+ unit: "{packet}/s"
116
- OID: 1.3.6.1.2.1.31.1.1.1.13
117
name: ifHCOutBroadcastPkts
118
description: Total number of packets that higher-level protocols requested be transmitted and which were addressed to a broadcast address
119
family: Interfaces/Packets/Broadcast
126
- unit: "{packet}"
127
- # Gauge that will be inferred from PDU type
120
+ unit: "{packet}/s"
121
- OID: 1.3.6.1.2.1.31.1.1.1.15
122
name: ifHighSpeed
130
- description: Estimate of the interface's current bandwidth in units of 1,000,000 bits per second
123
+ description: Estimate of the interface's current bandwidth
124
family: Interfaces/Speed
132
- unit: "Mbit/s"
125
+ scale_factor: 1000000 # Megabits => bits
126
+ unit: bit/s
127
metric_tags:
128
- tag: interface
129
symbol: