Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KeyTargetName, _ = tag.NewKey("target_name")
KeyTargetType, _ = tag.NewKey("target_type")
)
Keys
View Source
var ( ProbeCount = stats.Int64("probe_count", "Number probes performed", stats.UnitDimensionless) TrackCount = stats.Int64("track_count", "Number tracked peers", stats.UnitDimensionless) )
Measures
View Source
var ( ProbeCountView = &view.View{ Measure: ProbeCount, TagKeys: []tag.Key{KeyTargetName, KeyTargetType}, Aggregation: view.Count(), } TrackCountView = &view.View{ Measure: TrackCount, TagKeys: []tag.Key{KeyTargetName, KeyTargetType}, Aggregation: view.Count(), } )
Views
View Source
var DefaultStartViews = []*view.View{ ProbeCountView, TrackCountView, }
DefaultStartViews with all views in it.
Functions ¶
func ListenAndServe ¶
func RegisterMetrics ¶
func RegisterMetrics() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.