Documentation ¶
Overview ¶
Package metrics provides metrics.
Index ¶
- Variables
- func MeasurementsCount(m Metric) int
- func Record(ctx context.Context, ms ...Measurement)
- func RecordWithTags(ctx context.Context, mwts ...MeasurementWithTags) (errs error)
- func RegisterView(views ...*View) error
- type Float64Measure
- type Int64Measure
- type Key
- type Measurement
- type MeasurementWithTags
- type Metric
- type View
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Int64 = stats.Int64 Float64 = stats.Float64 UnitDimensionless = stats.UnitDimensionless UnitBytes = stats.UnitBytes UnitMilliseconds = stats.UnitMilliseconds Count = view.Count Distribution = view.Distribution LastValue = view.LastValue Sum = view.Sum DefaultMillisecondsDistribution = Distribution( 0.01, 0.05, 0.1, 0.3, 0.6, 0.8, 1, 2, 3, 4, 5, 6, 8, 10, 13, 16, 20, 25, 30, 40, 50, 65, 80, 100, 130, 160, 200, 250, 300, 400, 500, 650, 800, 1000, 2000, 5000, 10000, 20000, 50000, 100000, ) RoughMillisecondsDistribution = Distribution( 1, 5, 10, 30, 60, 8, 100, 200, 300, 400, 500, 600, 800, 1000, 1300, 1600, 2000, 2500, 3000, 4000, 5000, 6500, 8000, 10000, 13000, 16000, 20000, 25000, 30000, 40000, 50000, 65000, 80000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000, ) NewKey = tag.NewKey ValdOrg = "vald.vdaas.org" )
Functions ¶
func MeasurementsCount ¶
func Record ¶
func Record(ctx context.Context, ms ...Measurement)
func RecordWithTags ¶
func RecordWithTags(ctx context.Context, mwts ...MeasurementWithTags) (errs error)
func RegisterView ¶
Types ¶
type Float64Measure ¶
type Float64Measure = stats.Float64Measure
type Int64Measure ¶
type Int64Measure = stats.Int64Measure
type Measurement ¶
type Measurement = stats.Measurement
type MeasurementWithTags ¶
type MeasurementWithTags struct { Measurement Measurement Tags map[Key]string }
Directories ¶
Path | Synopsis |
---|---|
agent
|
|
core/ngt
Package ngt provides functions for ngt stats
|
Package ngt provides functions for ngt stats |
sidecar
Package sidecar provides functions for sidecar stats
|
Package sidecar provides functions for sidecar stats |
db
|
|
kvs/redis
Package redis provides redis metrics functions
|
Package redis provides redis metrics functions |
nosql/cassandra
Package cassandra provides cassandra metrics functions
|
Package cassandra provides cassandra metrics functions |
rdb/mysql
Package mysql provides mysql metrics functions
|
Package mysql provides mysql metrics functions |
Package grpc provides functions for grpc stats
|
Package grpc provides functions for grpc stats |
manager
|
|
compressor
Package compressor provides functions for compressor stats
|
Package compressor provides functions for compressor stats |
index
Package index provides functions for indexer stats
|
Package index provides functions for indexer stats |
Package mem provides memory metrics functions
|
Package mem provides memory metrics functions |
runtime
|
|
cgo
Package cgo provides functions for runtime cgo stats
|
Package cgo provides functions for runtime cgo stats |
goroutine
Package goroutine provides functions for goroutine runtime stats
|
Package goroutine provides functions for goroutine runtime stats |
Package version provides version info metrics functions
|
Package version provides version info metrics functions |
Click to show internal directories.
Click to hide internal directories.