statsd

package
v1.6.65 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiCounters map[string]*ApiCounter

Functions

func RegisterCountableForIngester

func RegisterCountableForIngester(module string, countable stats.Countable, opts ...stats.Option) error

Types

type ApiCounter

type ApiCounter struct {
	// contains filtered or unexported fields
}

func NewApiCounter

func NewApiCounter() *ApiCounter

func (*ApiCounter) Close

func (c *ApiCounter) Close()

func (*ApiCounter) Closed

func (c *ApiCounter) Closed() bool

func (*ApiCounter) GetCounter

func (c *ApiCounter) GetCounter() interface{}

func (*ApiCounter) Write

func (c *ApiCounter) Write(ac *ApiStats)

type ApiStats

type ApiStats struct {
	ApiTime    uint64
	ApiTimeSum uint64
	ApiTimeAvg uint64 `statsd:"api_time_avg"`
	ApiTimeMax uint64 `statsd:"api_time_max"`
	ApiCount   uint64 `statsd:"api_count"`
}

type ClickhouseCounter

type ClickhouseCounter struct {
	QueryCount   uint64 `statsd:"query_count"`
	ResponseSize uint64 `statsd:"response_size"`
	RowCount     uint64 `statsd:"row_count"`
	ColumnCount  uint64 `statsd:"column_count"`
	QueryTime    uint64
	QueryTimeSum uint64
	QueryTimeAvg uint64 `statsd:"query_time_avg"`
	QueryTimeMax uint64 `statsd:"query_time_max"`
	ApiTime      uint64
	ApiTimeSum   uint64
	ApiTimeAvg   uint64 `statsd:"api_time_avg"`
	ApiTimeMax   uint64 `statsd:"api_time_max"`
	ApiCount     uint64 `statsd:"api_count"`
}

type Counter

type Counter struct {
	// contains filtered or unexported fields
}
var QuerierCounter *Counter

func NewCounter

func NewCounter() *Counter

func (*Counter) Close

func (c *Counter) Close()

func (*Counter) Closed

func (c *Counter) Closed() bool

func (*Counter) GetCounter

func (c *Counter) GetCounter() interface{}

func (*Counter) WriteApi

func (c *Counter) WriteApi(qc *ClickhouseCounter)

func (*Counter) WriteCk

func (c *Counter) WriteCk(qc *ClickhouseCounter)

Jump to

Keyboard shortcuts

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