metrics

package
v0.0.0-...-62f7a63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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 ListenAndServe(host string, port int) error

func RegisterMetrics

func RegisterMetrics() error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL