metrics

package
v1.20.0-rc2-boost Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TipsetCollectionHeight              = stats.Int64("tipset_collection/height", "Current Height of the node", stats.UnitDimensionless)
	TipsetCollectionHeightExpected      = stats.Int64("tipset_collection/height_expected", "Current Height of the node", stats.UnitDimensionless)
	TipsetCollectionPoints              = stats.Int64("tipset_collection/points", "Counter for total number of points collected", stats.UnitDimensionless)
	TipsetCollectionDuration            = stats.Float64("tipset_collection/total_ms", "Duration of tipset point collection", stats.UnitMilliseconds)
	TipsetCollectionBlockHeaderDuration = stats.Float64("tipset_collection/block_header_ms", "Duration of block header point collection", stats.UnitMilliseconds)
	TipsetCollectionMessageDuration     = stats.Float64("tipset_collection/message_ms", "Duration of message point collection", stats.UnitMilliseconds)
	TipsetCollectionStaterootDuration   = stats.Float64("tipset_collection/stateroot_ms", "Duration of stateroot point collection", stats.UnitMilliseconds)
	IpldStoreCacheSize                  = stats.Int64("ipld_store/cache_size", "Initialized size of the object read cache", stats.UnitDimensionless)
	IpldStoreCacheLength                = stats.Int64("ipld_store/cache_length", "Current length of object read cache", stats.UnitDimensionless)
	IpldStoreCacheHit                   = stats.Int64("ipld_store/cache_hit", "Counter for total cache hits", stats.UnitDimensionless)
	IpldStoreCacheMiss                  = stats.Int64("ipld_store/cache_miss", "Counter for total cache misses", stats.UnitDimensionless)
	IpldStoreReadDuration               = stats.Float64("ipld_store/read_ms", "Duration of object read request to lotus", stats.UnitMilliseconds)
	IpldStoreGetDuration                = stats.Float64("ipld_store/get_ms", "Duration of object get from store", stats.UnitMilliseconds)
	WriteQueueSize                      = stats.Int64("write_queue/length", "Current length of the write queue", stats.UnitDimensionless)
)

Measures

View Source
var (
	TipsetCollectionHeightView = &view.View{
		Measure:     TipsetCollectionHeight,
		Aggregation: view.LastValue(),
	}
	TipsetCollectionHeightExpectedView = &view.View{
		Measure:     TipsetCollectionHeightExpected,
		Aggregation: view.LastValue(),
	}
	TipsetCollectionPointsView = &view.View{
		Measure:     TipsetCollectionPoints,
		Aggregation: view.Sum(),
	}
	TipsetCollectionDurationView = &view.View{
		Measure:     TipsetCollectionDuration,
		Aggregation: defaultMillisecondsDistribution,
	}
	TipsetCollectionBlockHeaderDurationView = &view.View{
		Measure:     TipsetCollectionBlockHeaderDuration,
		Aggregation: defaultMillisecondsDistribution,
	}
	TipsetCollectionMessageDurationView = &view.View{
		Measure:     TipsetCollectionMessageDuration,
		Aggregation: defaultMillisecondsDistribution,
	}
	TipsetCollectionStaterootDurationView = &view.View{
		Measure:     TipsetCollectionStaterootDuration,
		Aggregation: defaultMillisecondsDistribution,
	}
	IpldStoreCacheSizeView = &view.View{
		Measure:     IpldStoreCacheSize,
		Aggregation: view.LastValue(),
	}
	IpldStoreCacheLengthView = &view.View{
		Measure:     IpldStoreCacheLength,
		Aggregation: view.LastValue(),
	}
	IpldStoreCacheHitView = &view.View{
		Measure:     IpldStoreCacheHit,
		Aggregation: view.Count(),
	}
	IpldStoreCacheMissView = &view.View{
		Measure:     IpldStoreCacheMiss,
		Aggregation: view.Count(),
	}
	IpldStoreReadDurationView = &view.View{
		Measure:     IpldStoreReadDuration,
		Aggregation: defaultMillisecondsDistribution,
	}
	IpldStoreGetDurationView = &view.View{
		Measure:     IpldStoreGetDuration,
		Aggregation: defaultMillisecondsDistribution,
	}
)

Views

DefaultViews is an array of OpenCensus views for metric gathering purposes

View Source
var SinceInMilliseconds = metrics.SinceInMilliseconds
View Source
var Timer = metrics.Timer

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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