Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OS ¶
func OS() monkit.StatSource
OS returns a StatSource that includes various operating system process data such as the number of file descriptors. Not expected to be called directly, as this StatSource is added by Register.
func Proc ¶
func Proc() monkit.StatSource
Proc returns a StatSource that includes various operating system process data from /proc if available. Not expected to be called directly, as this StatSource is added by Register.
func Process ¶
func Process() monkit.StatSource
Process returns a StatSource including generic process data, such as the process uptime, and a crc of the executing binary if possible. Also includes a 'control' value so data collectors can accurately count how many unique running processes being monitored there are. Not expected to be called directly, as this StatSource is added by Register.
func Register ¶
Register attaches all of this package's environment data to the given registry. It will be attached to a top-level scope called 'env'.
func Runtime ¶
func Runtime() monkit.StatSource
Runtime returns a StatSource that includes information gathered from the Go runtime, including the number of goroutines currently running, and other live memory data. Not expected to be called directly, as this StatSource is added by Register.
func Rusage ¶
func Rusage() monkit.StatSource
Rusage returns a StatSource that provides as many statistics as possible gathered from the Rusage syscall. Not expected to be called directly, as this StatSource is added by Register.
Types ¶
This section is empty.