Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiCounters map[string]*ApiCounter
Functions ¶
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 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) GetCounter ¶
func (c *Counter) GetCounter() interface{}
func (*Counter) WriteApi ¶
func (c *Counter) WriteApi(qc *ClickhouseCounter)
func (*Counter) WriteCk ¶
func (c *Counter) WriteCk(qc *ClickhouseCounter)
Click to show internal directories.
Click to hide internal directories.