Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrServerEndedUnexpectedly = fmt.Errorf("metrics server exited unexpectedly") ErrServerStopTimeout = fmt.Errorf("metrics server exit timeout") )
Functions ¶
This section is empty.
Types ¶
type IntervalConfig ¶
IntervalConfig for interval collection
func NewIntervalConfig ¶
func NewIntervalConfig(publish bool) IntervalConfig
NewIntervalConfig is constructor for IntervalConfig, and uses default metrics interval
type Logger ¶ added in v0.8.0
type Logger interface { Info(s string) Warn(s string) Error(s string) Infof(format string, args ...interface{}) }
Logger logs formatted strings at the different log levels.
Click to show internal directories.
Click to hide internal directories.