Documentation ¶
Overview ¶
Package metrics provides metrics view of variables which is exposed through expvar package.
Naming conventions: 1. volatile path components should be kept as deep into the hierarchy as possible 2. each path component should have a clear and well-defined purpose 3. components.separated.with.dot, and put package prefix at the head 4. words_separated_with_underscore, and put clarifiers last, e.g., requests_total
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is a number that increases over time monotonically.
func NewCounter ¶
Convenience functions for creating new exported variables.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge returns instantaneous value that is expected to fluctuate over time.
Click to show internal directories.
Click to hide internal directories.