metric

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateMetric added in v0.6.3

func UpdateMetric(addr string) error

Types

type Metric

type Metric struct {
	// contains filtered or unexported fields
}
var GsMetric *Metric

func NewMetric

func NewMetric(clusterId uint64, host, addr string, maxSlowLogNum uint64) *Metric

func (*Metric) AddConnectCount

func (m *Metric) AddConnectCount(delta int64)

func (*Metric) GetMetricAddress added in v0.6.3

func (m *Metric) GetMetricAddress() string

func (*Metric) Output

func (m *Metric) Output(output interface{})

func (*Metric) ProxyApiMetric

func (m *Metric) ProxyApiMetric(method string, ack bool, delay time.Duration)

func (*Metric) Run

func (m *Metric) Run()

func (*Metric) SendMetric

func (m *Metric) SendMetric(url string, message proto.Message) error

func (*Metric) SlowLogMetric

func (m *Metric) SlowLogMetric(slowLog string, delay time.Duration)

func (*Metric) StoreApiMetric

func (m *Metric) StoreApiMetric(method string, ack bool, delay time.Duration)

type SlowLog

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

Jump to

Keyboard shortcuts

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