Documentation ¶
Overview ¶
Package metrics provides a set of metrics for the application.
Index ¶
Constants ¶
View Source
const ( // DefaultMetricCounterLabel is the default label for a counter metric. DefaultMetricCounterLabel = "counter" // Name of the package/application. Name = "etler" )
Variables ¶
This section is empty.
Functions ¶
func NewIntWithPattern ¶
NewIntWithPattern creates and initializes a new expvar.Int with a consistent naming pattern where `t` is the type of the entity, `subject` is the subject of the metric, `status` is the status of the metric - usually from the `status` package.
func NewStringWithPattern ¶
NewStringWithPattern creates and initializes a new expvar.String with a consistent naming pattern where `t` is the type of the entity, `subject` is the subject of the metric, `status` is the status of the metric - usually from the `status` package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.