environment

package
v2.0.0-...-0981395 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2019 License: Apache-2.0 Imports: 10 Imported by: 4

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 open and other information 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

func Register(registry *monkit.Registry)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL