collector: implement node_boot_time_seconds for OpenBSD/NetBSD/Darwin
Signed-off-by: mischief <mischief@offblast.org>
This commit is contained in:
parent
6025dc207d
commit
26a385d7ab
3 changed files with 57 additions and 10 deletions
|
|
@ -39,9 +39,6 @@ func NewExecCollector() (Collector, error) {
|
|||
// vm.stats.sys.v_intr: Device interrupts
|
||||
// vm.stats.sys.v_soft: Software interrupts
|
||||
// vm.stats.vm.v_forks: Number of fork() calls
|
||||
//
|
||||
// From sys/kern/kern_tc.c:
|
||||
// kern.boottime is an S,timeval
|
||||
|
||||
return &execCollector{
|
||||
sysctls: []bsdSysctl{
|
||||
|
|
@ -75,12 +72,6 @@ func NewExecCollector() (Collector, error) {
|
|||
description: "Number of fork() calls since system boot. Resets at architecture unsigned integer.",
|
||||
mib: "vm.stats.vm.v_forks",
|
||||
},
|
||||
{
|
||||
name: "boot_time_seconds",
|
||||
description: "Unix time of last boot, including microseconds.",
|
||||
mib: "kern.boottime",
|
||||
dataType: bsdSysctlTypeStructTimeval,
|
||||
},
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue