Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateSince ¶
UpdateSince creates and update Timer
Types ¶
type Config ¶
type Config struct { // Target, possible values: "graphite", "expvar", "stdout" Target string `yaml:"Target,omitempty"` // Interval determines how often metrics should be released, applicable for "graphite", "prometheus" and "stdout" Interval Interval `yaml:"Interval,omitempty"` // Addr points graphite collector address Addr string `yaml:"Addr,omitempty"` // ExpAddr is expvar server adress ExpAddr string `yaml:"ExpAddr,omitempty"` // Prefix graphite metrics Prefix string `yaml:"Prefix,omitempty"` // Percentiles customizes metrics sent to graphite default: 0.75, 0.95, 0.99, 0.999 Percentiles []float64 `yaml:"Percentiles"` // Debug includes runtime.MemStats metrics Debug bool `yaml:"Debug"` // AppendDefaults adds "<hostname>.<process>" suffix AppendDefaults bool `yaml:"AppendDefaults,omitempty"` }
Config defines metrics publication details
Click to show internal directories.
Click to hide internal directories.