metrics

package
v2.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbMetrics

type DbMetrics struct {
	WriteDurations []time.Duration
	WriteTime      time.Duration
	WriteLeaves    int64

	QueryDurations   []time.Duration
	QueryTime        time.Duration
	QueryCount       int64
	QueryLeafMiss    int64
	QueryLeafCount   int64
	QueryBranchCount int64
}

func (*DbMetrics) Add

func (m *DbMetrics) Add(o *DbMetrics)

func (*DbMetrics) QueryReport

func (m *DbMetrics) QueryReport(bins int) error

func (*DbMetrics) SetQueryZero

func (m *DbMetrics) SetQueryZero()

type Label

type Label struct {
	Name  string
	Value string
}

type Proxy

type Proxy interface {
	IncrCounter(val float32, keys ...string)
	SetGauge(val float32, keys ...string)
	MeasureSince(start time.Time, keys ...string)
}

type TreeMetrics

type TreeMetrics struct {
	PoolGet       int64
	PoolReturn    int64
	PoolEvict     int64
	PoolEvictMiss int64
	PoolFault     int64

	TreeUpdate  int64
	TreeNewNode int64
	TreeDelete  int64
}

func (*TreeMetrics) Report

func (m *TreeMetrics) Report()

Jump to

Keyboard shortcuts

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