stats

package
v0.0.0-...-d050cfb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Parents map[string]*Parent
}

Api 调用信息

func NewApi

func NewApi() *Api

NewApi ...

type ApiMap

type ApiMap struct {
	Apis map[string]*Api
}

ApiMap api被调用情况

func NewApiMap

func NewApiMap() *ApiMap

NewApiMap ...

type ApiStore

type ApiStore struct {
	// apps
	Apps map[string]*App
}

ApiStore api集合

func NewApiStore

func NewApiStore() *ApiStore

type App

type App struct {
	Urls   map[string]*Url   `msg:"url"`   // url 统计信息
	Dubbos map[string]*Dubbo `msg:"dubbo"` // dubbo统计信息
}

App apis

func NewApp

func NewApp() *App

type Dubbo

type Dubbo struct {
	Duration          int32 `msg:"d"`   // 总耗时
	MinDuration       int32 `msg:"min"` // 最小耗时
	MaxDuration       int32 `msg:"max"` // 最大耗时
	AccessCount       int   `msg:"ac"`  // 访问总数
	AccessErrCount    int   `msg:"aec"` // 访问错误数
	SatisfactionCount int   `msg:"sc"`  // 满意次数
	TolerateCount     int   `msg:"tc"`  // 可容忍次数
}

Dubbo ...

func NewDubbo

func NewDubbo() *Dubbo

NewDubbo new dubbo

type ExMethod

type ExMethod struct {
	Exceptions map[int32]*Exception
}

ExMethod 接口信息

func NewExMethod

func NewExMethod() *ExMethod

NewExMethod 新接口

func (*ExMethod) Get

func (e *ExMethod) Get(exID int32) (*Exception, bool)

Get ...

func (*ExMethod) Store

func (e *ExMethod) Store(exID int32, ex *Exception)

Store ...

type Exception

type Exception struct {
	Type        int   // 服务类型
	Duration    int32 // 总耗时
	Count       int   // 发生次数
	MinDuration int32 // 最小耗时
	MaxDuration int32 // 最大耗时
}

Exception 异常接口

func NewException

func NewException() *Exception

NewException ...

type Exceptions

type Exceptions struct {
	Count     int // span发送的次数
	ErrCount  int // 异常总数
	ExMethods map[int32]*ExMethod
}

Exceptions 异常统计

func NewExceptions

func NewExceptions() *Exceptions

NewExceptions ...

func (*Exceptions) Get

func (a *Exceptions) Get(methodID int32) (*ExMethod, bool)

Get 获取Method异常信息

func (*Exceptions) Store

func (a *Exceptions) Store(methodID int32, exMethod *ExMethod)

Store 存储methodID异常信息

type JVMCPULoad

type JVMCPULoad struct {
	Jvm    float64 `json:"jvm"`
	System float64 `json:"system"`
}

JVMCPULoad ...

type JVMGC

type JVMGC struct {
	Type                     pinpoint.TJvmGcType `json:"type"`
	HeapUsed                 int64               `json:"heapUsed"`
	HeapMax                  int64               `json:"heapMax"`
	NonHeapUsed              int64               `json:"-"`
	NonHeapMax               int64               `json:"-"`
	GcOldCount               int64               `json:"jvmGcOldCount"`
	JvmGcOldTime             int64               `json:"jvmGcOldTime"`
	JvmGcNewCount            int64               `json:"jvmGcNewCount"`
	JvmGcNewTime             int64               `json:"jvmGcNewTime"`
	JvmPoolCodeCacheUsed     float64             `json:"-"`
	JvmPoolNewGenUsed        float64             `json:"-"`
	JvmPoolOldGenUsed        float64             `json:"-"`
	JvmPoolSurvivorSpaceUsed float64             `json:"-"`
	JvmPoolPermGenUsed       float64             `json:"JvmPoolPermGenUsed"`
	JvmPoolMetaspaceUsed     float64             `json:"JvmPoolMetaspaceUsed"`
}

JVMGC ...

type JVMInfo

type JVMInfo struct {
	CPULoad *JVMCPULoad `json:"cpuload"`
	GC      *JVMGC      `json:"gc"`
}

JVMInfo ...

func NewJVMInfo

func NewJVMInfo() *JVMInfo

NewJVMInfo ...

type JVMStats

type JVMStats struct {
	Agents map[string]*JVMInfo
}

JVMStats jvm 信息计算统计

func NewJVMStats

func NewJVMStats() *JVMStats

NewJVMStats ...

type Method

type Method struct {
	Type        int16 // 服务类型
	Duration    int32 // 总耗时
	Count       int   // 发生次数
	ErrCount    int   // 错误次数
	MinDuration int32 // 最小耗时
	MaxDuration int32 // 最大耗时
}

Method 接口信息

func NewMethod

func NewMethod(methodType int16) *Method

NewMethod ...

type Methods

type Methods struct {
	ApiStr  string
	Methods map[int32]*Method
}

Methods 接口统计

func NewMethods

func NewMethods() *Methods

NewMethods ...

func (*Methods) Get

func (m *Methods) Get(methodID int32) (*Method, bool)

Get 获取medthod信息

func (*Methods) Store

func (m *Methods) Store(methodID int32, method *Method)

Store 存储method信息

type Parent

type Parent struct {
	Type           int16 // 父节点类型
	AccessCount    int   // 访问次数
	AccessErrCount int   // 访问失败次数
	AccessDuration int32 // 访问耗时
	ExceptionCount int   // 异常次数
}

Parent 所有调用者信息

func NewParent

func NewParent() *Parent

NewParent ...

type Runtime

type Runtime struct {
	JVMCpuload    float64 // jvm cpuload
	SystemCpuload float64 // system cpuload
	JVMHeap       int64   // jvm heap
	Count         int     // 记录包数
}

Runtime ...

func NewRuntime

func NewRuntime() *Runtime

NewRuntime ...

type Runtimes

type Runtimes struct {
	Runtimes map[string]*Runtime // agentid为key
}

Runtimes runtimes计算

func NewRuntimes

func NewRuntimes() *Runtimes

NewRuntimes ...

type SQL

type SQL struct {
	Duration    int32 // 总耗时
	MinDuration int32 // 最小耗时
	MaxDuration int32 // 最大耗时
	Count       int   // 发生次数
	ErrCount    int   // 错误次数
}

SQL 统计信息

func NewSQL

func NewSQL() *SQL

NewSQL ...

type SQLS

type SQLS struct {
	SQLS map[int32]*SQL
}

SQLS 接口计算统计

func NewSQLS

func NewSQLS() *SQLS

NewSQLS ...

func (*SQLS) Get

func (s *SQLS) Get(sqlID int32) (*SQL, bool)

Get 获取sql信息

func (*SQLS) Store

func (s *SQLS) Store(sqlID int32, info *SQL)

Store 存储sql信息

type SrvMap

type SrvMap struct {
	AppType      int16                        // 本服务服务类型
	UnknowParent *UnknowParent                // 未接入监控的请求者
	Targets      map[int16]map[string]*Target // 子节点拓扑图

}

SrvMap 应用拓扑

func NewSrvMap

func NewSrvMap() *SrvMap

NewSrvMap ...

type SrvParent

type SrvParent struct {
	Type           int16
	TargetCount    int   // 目标应用收到请求总数
	TargetErrCount int   // 目标应用内部异常数
	AccessDuration int32 // 访问总耗时
}

SrvParent 父节点访问子节点信息

func NewSrvParent

func NewSrvParent() *SrvParent

NewSrvParent ....

type Target

type Target struct {
	AccessCount    int   // 访问总数
	AccessErrCount int   // 访问错误数
	AccessDuration int32 // 访问总耗时
}

Target ...

func NewTarget

func NewTarget() *Target

NewTarget ...

type UnknowParent

type UnknowParent struct {
	AccessCount    int   // 访问总数
	AccessDuration int32 // 访问总耗时
}

UnknowParent 未接入监控的服务,只能抓到访问地址

func NewUnknowParent

func NewUnknowParent() *UnknowParent

NewUnknowParent ...

type Url

type Url struct {
	Duration          int32 `msg:"d"`   // 总耗时
	MinDuration       int32 `msg:"min"` // 最小耗时
	MaxDuration       int32 `msg:"max"` // 最大耗时
	AccessCount       int   `msg:"ac"`  // 访问总数
	AccessErrCount    int   `msg:"aec"` // 访问错误数
	SatisfactionCount int   `msg:"sc"`  // 满意次数
	TolerateCount     int   `msg:"tc"`  // 可容忍次数
}

Url url

func NewUrl

func NewUrl() *Url

NewUrl new url

Jump to

Keyboard shortcuts

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