collector

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector ticks periodically and emits runtime stats to datadog

func New

func New(client *statsd.Client, interval time.Duration) *Collector

New creates a new collector that will periodically emit runtime statistics to datadog.

func (*Collector) Close

func (c *Collector) Close()

Close signals the collector to close the polling goroutine, use for graceful shutdowns

func (*Collector) Run

func (c *Collector) Run()

Run gathers statistics from package runtime and emits them to statsd via client

Jump to

Keyboard shortcuts

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