Skip to content

Commit 8f7c237

Browse files
seeplusplusgitperr
authored andcommitted
Revert "Add ZFS freebsd per dataset stats (prometheus#2753)" (prometheus#2925)
This reverts commit f34aaa6. Signed-off-by: Caleb Webber <[email protected]>
1 parent 3b8388d commit 8f7c237

File tree

7 files changed

+3
-102
lines changed

7 files changed

+3
-102
lines changed

collector/exec_bsd.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,37 +49,31 @@ func NewExecCollector(logger log.Logger) (Collector, error) {
4949
name: "exec_context_switches_total",
5050
description: "Context switches since system boot. Resets at architecture unsigned integer.",
5151
mib: "vm.stats.sys.v_swtch",
52-
labels: nil,
5352
},
5453
{
5554
name: "exec_traps_total",
5655
description: "Traps since system boot. Resets at architecture unsigned integer.",
5756
mib: "vm.stats.sys.v_trap",
58-
labels: nil,
5957
},
6058
{
6159
name: "exec_system_calls_total",
6260
description: "System calls since system boot. Resets at architecture unsigned integer.",
6361
mib: "vm.stats.sys.v_syscall",
64-
labels: nil,
6562
},
6663
{
6764
name: "exec_device_interrupts_total",
6865
description: "Device interrupts since system boot. Resets at architecture unsigned integer.",
6966
mib: "vm.stats.sys.v_intr",
70-
labels: nil,
7167
},
7268
{
7369
name: "exec_software_interrupts_total",
7470
description: "Software interrupts since system boot. Resets at architecture unsigned integer.",
7571
mib: "vm.stats.sys.v_soft",
76-
labels: nil,
7772
},
7873
{
7974
name: "exec_forks_total",
8075
description: "Number of fork() calls since system boot. Resets at architecture unsigned integer.",
8176
mib: "vm.stats.vm.v_forks",
82-
labels: nil,
8377
},
8478
},
8579
logger: logger,

collector/memory_bsd.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,71 +69,61 @@ func NewMemoryCollector(logger log.Logger) (Collector, error) {
6969
description: "Recently used by userland",
7070
mib: "vm.stats.vm.v_active_count",
7171
conversion: fromPage,
72-
labels: nil,
7372
},
7473
{
7574
name: "inactive_bytes",
7675
description: "Not recently used by userland",
7776
mib: "vm.stats.vm.v_inactive_count",
7877
conversion: fromPage,
79-
labels: nil,
8078
},
8179
{
8280
name: "wired_bytes",
8381
description: "Locked in memory by kernel, mlock, etc",
8482
mib: "vm.stats.vm.v_wire_count",
8583
conversion: fromPage,
86-
labels: nil,
8784
},
8885
{
8986
name: "user_wired_bytes",
9087
description: "Locked in memory by user, mlock, etc",
9188
mib: "vm.stats.vm.v_user_wire_count",
9289
conversion: fromPage,
9390
dataType: bsdSysctlTypeCLong,
94-
labels: nil,
9591
},
9692
{
9793
name: "cache_bytes",
9894
description: "Almost free, backed by swap or files, available for re-allocation",
9995
mib: "vm.stats.vm.v_cache_count",
10096
conversion: fromPage,
101-
labels: nil,
10297
},
10398
{
10499
name: "buffer_bytes",
105100
description: "Disk IO Cache entries for non ZFS filesystems, only usable by kernel",
106101
mib: "vfs.bufspace",
107102
dataType: bsdSysctlTypeCLong,
108-
labels: nil,
109103
},
110104
{
111105
name: "free_bytes",
112106
description: "Unallocated, available for allocation",
113107
mib: "vm.stats.vm.v_free_count",
114108
conversion: fromPage,
115-
labels: nil,
116109
},
117110
{
118111
name: "laundry_bytes",
119112
description: "Dirty not recently used by userland",
120113
mib: "vm.stats.vm.v_laundry_count",
121114
conversion: fromPage,
122-
labels: nil,
123115
},
124116
{
125117
name: "size_bytes",
126118
description: "Total physical memory size",
127119
mib: "vm.stats.vm.v_page_count",
128120
conversion: fromPage,
129-
labels: nil,
130121
},
131122
{
132123
name: "swap_size_bytes",
133124
description: "Total swap memory size",
134125
mib: mibSwapTotal,
135126
dataType: bsdSysctlTypeUint64,
136-
labels: nil,
137127
},
138128
// Descriptions via: top(1)
139129
{
@@ -142,15 +132,13 @@ func NewMemoryCollector(logger log.Logger) (Collector, error) {
142132
mib: "vm.stats.vm.v_swappgsin",
143133
valueType: prometheus.CounterValue,
144134
conversion: fromPage,
145-
labels: nil,
146135
},
147136
{
148137
name: "swap_out_bytes_total",
149138
description: "Bytes paged out to swap devices",
150139
mib: "vm.stats.vm.v_swappgsout",
151140
valueType: prometheus.CounterValue,
152141
conversion: fromPage,
153-
labels: nil,
154142
},
155143
},
156144
}, nil

collector/netisr_freebsd.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,47 +45,41 @@ func NewNetisrCollector(logger log.Logger) (Collector, error) {
4545
mib: "net.isr.numthreads",
4646
dataType: bsdSysctlTypeUint32,
4747
valueType: prometheus.GaugeValue,
48-
labels: nil,
4948
},
5049
{
5150
name: "maxprot",
5251
description: "netisr maximum protocols",
5352
mib: "net.isr.maxprot",
5453
dataType: bsdSysctlTypeUint32,
5554
valueType: prometheus.GaugeValue,
56-
labels: nil,
5755
},
5856
{
5957
name: "defaultqlimit",
6058
description: "netisr default queue limit",
6159
mib: "net.isr.defaultqlimit",
6260
dataType: bsdSysctlTypeUint32,
6361
valueType: prometheus.GaugeValue,
64-
labels: nil,
6562
},
6663
{
6764
name: "maxqlimit",
6865
description: "netisr maximum queue limit",
6966
mib: "net.isr.maxqlimit",
7067
dataType: bsdSysctlTypeUint32,
7168
valueType: prometheus.GaugeValue,
72-
labels: nil,
7369
},
7470
{
7571
name: "bindthreads",
7672
description: "netisr threads bound to CPUs",
7773
mib: "net.isr.bindthreads",
7874
dataType: bsdSysctlTypeUint32,
7975
valueType: prometheus.GaugeValue,
80-
labels: nil,
8176
},
8277
{
8378
name: "maxthreads",
8479
description: "netisr maximum thread count",
8580
mib: "net.isr.maxthreads",
8681
dataType: bsdSysctlTypeUint32,
8782
valueType: prometheus.GaugeValue,
88-
labels: nil,
8983
},
9084
},
9185
logger: logger,

collector/sysctl_bsd.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ type bsdSysctl struct {
5959

6060
// Post-retrieval conversion hooks
6161
conversion func(float64) float64
62-
63-
// Prometheus labels
64-
labels prometheus.Labels
6562
}
6663

6764
func (b bsdSysctl) Value() (float64, error) {

0 commit comments

Comments
 (0)