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 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
|
|
ngt
Package ngt provides functions for ngt stats
|
Package ngt provides functions for ngt stats |
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 |
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.