package
Version:
v0.0.0-...-077b43f
Opens a new window with list of versions in this module.
Published: Sep 27, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package telemetry perists github.com/funkygao/go-metrics
metrics.Registry to durable storage.
- Constants
-
func Tag(appid, topic, ver string) string
-
func Untag(name string) (appid, topic, ver, realname string)
-
func UpdateCounter(appid, topic, ver, name string, n int64, mu *sync.RWMutex, ...)
-
type Reporter
TODO replace '.' with '_'
func Untag(name string) (appid, topic, ver, realname string)
Untag will extract the tags info from [encoded] metric name: sanitizeName
go-metrics pkg doesn't support tags feature, so we encode the tags
into metric name.
type Reporter interface {
Name() string
Start() error
Stop()
}
A Reporter continuously scans metrics.Registry and
persists all metrics to durable storage.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.