Documentation ¶
Index ¶
- func AllNamespaces(watchNamespaces []string) bool
- func GetPodNamespace() string
- func Int64Measure(name, description string) *stats.Int64Measure
- func MakeCounter(name, description string, aggregation *view.Aggregation, tagKeys ...tag.Key) *stats.Int64Measure
- func MakeGauge(name, description string, tagKeys ...tag.Key) *stats.Int64Measure
- func MakeLastValueCounter(name, description string, tagKeys ...tag.Key) *stats.Int64Measure
- func MakeSumCounter(name, description string, tagKeys ...tag.Key) *stats.Int64Measure
- func Measure(ctx context.Context, counter *stats.Int64Measure, val int64, ...)
- func MeasureOne(ctx context.Context, counter *stats.Int64Measure, tags ...tag.Mutator)
- func MeasureZero(ctx context.Context, counter *stats.Int64Measure, tags ...tag.Mutator)
- func ProcessWatchNamespaces(watchNamespaces []string, writeNamespace string) []string
- func ViewForCounter(counter *stats.Int64Measure, aggregation *view.Aggregation, tagKeys ...tag.Key) *view.View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllNamespaces ¶
func GetPodNamespace ¶ added in v1.9.25
func GetPodNamespace() string
func Int64Measure ¶ added in v1.15.19
func Int64Measure(name, description string) *stats.Int64Measure
Int64Measure returns a new Int64Measure with the given name and description
func MakeCounter ¶ added in v0.20.3
func MakeCounter(name, description string, aggregation *view.Aggregation, tagKeys ...tag.Key) *stats.Int64Measure
MakeCounter returns a new counter with the given name, description, aggregation, and tag keys
func MakeGauge ¶ added in v1.5.0
func MakeGauge(name, description string, tagKeys ...tag.Key) *stats.Int64Measure
MakeGauge returns a new gauge with the given name and description
func MakeLastValueCounter ¶ added in v1.0.0
func MakeLastValueCounter(name, description string, tagKeys ...tag.Key) *stats.Int64Measure
MakeLastValueCounter returns a counter with a LastValue aggregation for the given name, description, and tag keys
func MakeSumCounter ¶ added in v1.0.0
func MakeSumCounter(name, description string, tagKeys ...tag.Key) *stats.Int64Measure
MakeSumCounter returns a new counter with a Sum aggregation for the given name, description, and tag keys
func MeasureOne ¶ added in v1.0.0
MeasureOne records a one value to the given counter
func MeasureZero ¶ added in v1.5.0
MeasureZero records a zero value to the given counter
func ProcessWatchNamespaces ¶
func ViewForCounter ¶ added in v1.15.19
func ViewForCounter(counter *stats.Int64Measure, aggregation *view.Aggregation, tagKeys ...tag.Key) *view.View
ViewForCounter returns a view for the given measure with the given aggregation and tag keys
Types ¶
This section is empty.