Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConnView = &view.View{Measure: conns, Aggregation: view.Sum(), TagKeys: []tag.Key{directionTag, scopeTag}} PeerConnsView = &view.View{ Measure: peerConns, Aggregation: view.Distribution(oneTenThenExpDistribution...), TagKeys: []tag.Key{directionTag}, } PeerConnsNegativeView = &view.View{ Measure: peerConnsNegative, Aggregation: view.Distribution(oneTenThenExpDistribution...), TagKeys: []tag.Key{directionTag}, } StreamView = &view.View{Measure: streams, Aggregation: view.Sum(), TagKeys: []tag.Key{directionTag, scopeTag, serviceTag, protocolTag}} PeerStreamsView = &view.View{Measure: peerStreams, Aggregation: view.Distribution(oneTenThenExpDistribution...), TagKeys: []tag.Key{directionTag}} PeerStreamNegativeView = &view.View{Measure: peerStreamsNegative, Aggregation: view.Distribution(oneTenThenExpDistribution...), TagKeys: []tag.Key{directionTag}} MemoryView = &view.View{Measure: memory, Aggregation: view.Sum(), TagKeys: []tag.Key{scopeTag, serviceTag, protocolTag}} PeerMemoryView = &view.View{ Measure: peerMemory, Aggregation: view.Distribution(memDistribution...), } PeerMemoryNegativeView = &view.View{ Measure: peerMemoryNegative, Aggregation: view.Distribution(memDistribution...), } // Not setup yet. Memory isn't attached to a given connection. ConnMemoryView = &view.View{ Measure: connMemory, Aggregation: view.Distribution(memDistribution...), } ConnMemoryNegativeView = &view.View{ Measure: connMemoryNegative, Aggregation: view.Distribution(memDistribution...), } FDsView = &view.View{Measure: fds, Aggregation: view.Sum(), TagKeys: []tag.Key{scopeTag}} BlockedResourcesView = &view.View{ Measure: blockedResources, Aggregation: view.Sum(), TagKeys: []tag.Key{scopeTag, resourceTag}, } )
View Source
var DefaultViews []*view.View = []*view.View{ ConnView, PeerConnsView, PeerConnsNegativeView, FDsView, StreamView, PeerStreamsView, PeerStreamNegativeView, MemoryView, PeerMemoryView, PeerMemoryNegativeView, BlockedResourcesView, }
Functions ¶
This section is empty.
Types ¶
type StatsTraceReporter ¶
type StatsTraceReporter struct{}
StatsTraceReporter reports stats on the resource manager using its traces.
func NewStatsTraceReporter ¶
func NewStatsTraceReporter() (StatsTraceReporter, error)
func (StatsTraceReporter) ConsumeEvent ¶
func (r StatsTraceReporter) ConsumeEvent(evt rcmgr.TraceEvt)
Click to show internal directories.
Click to hide internal directories.