Add prometheus container level metrics
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
10
vendor/github.com/crosbymichael/cgroups/ticks.go
generated
vendored
Normal file
10
vendor/github.com/crosbymichael/cgroups/ticks.go
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package cgroups
|
||||
|
||||
/*
|
||||
#include <unistd.h>
|
||||
*/
|
||||
import "C"
|
||||
|
||||
func getClockTicks() uint64 {
|
||||
return uint64(C.sysconf(C._SC_CLK_TCK))
|
||||
}
|
||||
Reference in New Issue
Block a user