Documentation ¶
Overview ¶
Package metrics provides general system and process level metrics collection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Enabled = false
Enabled is the flag specifying if metrics are enable or not.
View Source
var MetricsEnabledFlag = "metrics"
MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.
Functions ¶
func NewCounter ¶
func NewCounter(name string) metrics.Counter
NewCounter create a new metrics Counter, either a real one of a NOP stub depending on the metrics flag.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.