Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{}
A configuration with default values.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // InfluxDb host:port pair. // Default is "localhost:8086". Host string `json:"host" yaml:"host" mapstructure:"host"` // Token. Token string `json:"token" yaml:"token" mapstructure:"token"` // Org. Org string `json:"org" yaml:"org" mapstructure:"org"` // Bucket. Bucket string `json:"bucket" yaml:"bucket" mapstructure:"bucket"` // Measurement to write points to. // Default is "go.runtime.<hostname>". Measurement string `json:"measurement" yaml:"measurement" mapstructure:"measurement"` // Interval at which to collect points. // Default is 10 seconds CollectionInterval time.Duration `json:"collection_interval" yaml:"collection_interval" mapstructure:"collection_interval"` // Disable collecting CPU Statistics. cpu.* // Default is false DisableCpu bool `json:"disable_cpu" yaml:"disable_cpu" mapstructure:"disable_cpu"` // Disable collecting Memory Statistics. mem.* DisableMem bool `json:"disable_mem" yaml:"disable_mem" mapstructure:"disable_mem"` // Disable collecting GC Statistics (requires Memory be not be disabled). mem.gc.* DisableGc bool `json:"disable_gc" yaml:"disable_gc" mapstructure:"disable_gc"` }
type DefaultLogger ¶
type DefaultLogger struct{}
func (*DefaultLogger) Fatalln ¶
func (*DefaultLogger) Fatalln(v ...interface{})
func (*DefaultLogger) Println ¶
func (*DefaultLogger) Println(v ...interface{})
Click to show internal directories.
Click to hide internal directories.