metrics

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCollector

func RunCollector(config *Config) error

Types

type Config

type Config struct {
	// InfluxDb scheme://host:port
	// Default is "http://localhost:8086".
	Addr string

	AuthToken string

	// Organization
	Org string

	// Bucket to write points to.
	// Default is "statsCollector" and is auto created
	Bucket string

	// Measurement to write points to.
	// Default is "go.runtime.<hostname>".
	Measurement string

	// Flush interval in ms
	FlushInterval uint

	// Interval at which to collect points.
	// Default is 10 seconds
	CollectionInterval time.Duration

	// Disable collecting CPU Statistics. cpu.*
	// Default is false
	DisableCpu bool

	// Disable collecting Memory Statistics. mem.*
	DisableMem bool
}

Jump to

Keyboard shortcuts

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