metrics

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheHits      = stats.Int64("core/cache/hits", "Number of retireval cache hits", stats.UnitDimensionless)
	CacheMisses    = stats.Int64("core/cache/misses", "Number of retireval cache misses", stats.UnitDimensionless)
	CacheItems     = stats.Int64("core/cache/items", "Number of indexes in cache", stats.UnitDimensionless)
	CacheValues    = stats.Int64("core/cache/values", "Number of values in cache", stats.UnitDimensionless)
	CacheEvictions = stats.Int64("core/cache/evictions", "Number of indexes evicted from cache", stats.UnitDimensionless)
	CacheMisuse    = stats.Int64("core/cache/misuse", "Cache clears due to high value to multihash ratio (indexer misuse)", stats.UnitDimensionless)

	GetIndexLatency   = stats.Float64("core/get_index_latency", "Time to retrieve an index", stats.UnitMilliseconds)
	IngestMultihashes = stats.Int64("core/ingest_multihashes", "Number of multihashes put into the indexer", stats.UnitDimensionless)
	StoreSize         = stats.Int64("core/storage_size", "Bytes of storage used to store the indexed content", stats.UnitBytes)
)

Measures

View Source
var DefaultViews = []*view.View{
	cacheHitsView,
	cacheMissesView,
	cacheItemsView,
	cacheValuesView,
	cacheEvictionsView,
	cacheMisuseView,
	getIndexLatencyView,
	ingestMultihashesView,
	storeSizeView,
}

DefaultViews with all views in it.

View Source
var (
	Method, _ = tag.NewKey("method")
)

Keys

Functions

func MsecSince

func MsecSince(startTime time.Time) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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