metricsserver

package
v0.0.0-...-16dfdc2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mercury

type Mercury struct {
	Namespace  string `json:"namespace"`
	MetricName string `json:"metricName"`
	Endpoint   string `json:"endpoint"`

	Timestamp   int64   `json:"timestamp"`
	DoubleValue float64 `json:"doubleValue"`

	MercuryMeta
}

func (Mercury) MarshalEasyJSON

func (v Mercury) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Mercury) MarshalJSON

func (v Mercury) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Mercury) UnmarshalEasyJSON

func (v *Mercury) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Mercury) UnmarshalJSON

func (v *Mercury) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MercuryMeta

type MercuryMeta struct {
	Duration     int    `json:"duration"`
	CounterType  string `json:"counterType"`
	EndpointType string `json:"endpointType"`
}

func (MercuryMeta) MarshalEasyJSON

func (v MercuryMeta) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MercuryMeta) MarshalJSON

func (v MercuryMeta) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MercuryMeta) UnmarshalEasyJSON

func (v *MercuryMeta) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MercuryMeta) UnmarshalJSON

func (v *MercuryMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MetricsLastReport

type MetricsLastReport struct {
	KsWriteRespTps           float64
	KsWriteReqLogTps         float64
	KsWriteReqMsgErrMaxSize  float64
	KsWriteReqMsgErrOther    float64
	KsWriteReqSrvErrNoLeader float64
	KsReadLogTps             float64
	KsConnCount              float64
	KsConnOnlineConnection   float64
	//logstore
	LogstoreReadCount  float64
	LogstoreWriteCount float64

	SegmentReadCount     float64
	SegmentCutTotalCount float64
	SegmentCutCount      float64
	// raft, string is raft group name
	RaftLatencyPerEntryMap map[string]float64
	// contains filtered or unexported fields
}

type MetricsLogFile

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

type MetricsServer

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

func NewMetricsServer

func NewMetricsServer(conf *MetricsServerConfig) *MetricsServer

func (*MetricsServer) Start

func (ms *MetricsServer) Start()

func (*MetricsServer) Stop

func (ms *MetricsServer) Stop()

type MetricsServerConfig

type MetricsServerConfig struct {

	// second
	ReportDuration int

	// log reserve hour
	LogReservedHour int

	// the metrics file dir
	MetricsFileDir string

	// end point for this vdl server
	// current can use ip + vdl name
	EndPoint string

	// vdl name, use to metric file name
	VDLName string
}

Jump to

Keyboard shortcuts

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