Documentation ¶
Index ¶
- func DecConnection()
- func DecConnectionGRPC()
- func DecConnectionSSE()
- func GetConnection() int64
- func GetConnectionGRPC() int64
- func GetConnectionSSE() int64
- func GoStatsHandler(w http.ResponseWriter, r *http.Request)
- func IncConnection()
- func IncConnectionGRPC()
- func IncConnectionSSE()
- func PlasmaStatsHandler(w http.ResponseWriter, r *http.Request)
- type GoStats
- type Metrics
- type PlasmaStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecConnection ¶
func DecConnection()
func DecConnectionGRPC ¶
func DecConnectionGRPC()
func DecConnectionSSE ¶
func DecConnectionSSE()
func GetConnection ¶
func GetConnection() int64
func GetConnectionGRPC ¶
func GetConnectionGRPC() int64
func GetConnectionSSE ¶
func GetConnectionSSE() int64
func GoStatsHandler ¶
func GoStatsHandler(w http.ResponseWriter, r *http.Request)
func IncConnection ¶
func IncConnection()
func IncConnectionGRPC ¶
func IncConnectionGRPC()
func IncConnectionSSE ¶
func IncConnectionSSE()
func PlasmaStatsHandler ¶
func PlasmaStatsHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type GoStats ¶
type GoStats struct { Time int64 `json:"time"` // runtime GoVersion string `json:"go_version"` GoOs string `json:"go_os"` GoArch string `json:"go_arch"` CPUNum int `json:"cpu_num"` GoroutineNum int `json:"goroutine_num"` Gomaxprocs int `json:"gomaxprocs"` CgoCallNum int64 `json:"cgo_call_num"` // memory MemoryAlloc uint64 `json:"memory_alloc"` MemoryTotalAlloc uint64 `json:"memory_total_alloc"` MemorySys uint64 `json:"memory_sys"` MemoryLookups uint64 `json:"memory_lookups"` MemoryMallocs uint64 `json:"memory_mallocs"` MemoryFrees uint64 `json:"memory_frees"` // stack StackInUse uint64 `json:"memory_stack"` // heap HeapAlloc uint64 `json:"heap_alloc"` HeapSys uint64 `json:"heap_sys"` HeapIdle uint64 `json:"heap_idle"` HeapInuse uint64 `json:"heap_inuse"` HeapReleased uint64 `json:"heap_released"` HeapObjects uint64 `json:"heap_objects"` // garbage collection GcNext uint64 `json:"gc_next"` GcLast uint64 `json:"gc_last"` GcNum uint32 `json:"gc_num"` GcPerSecond float64 `json:"gc_per_second"` GcPausePerSecond float64 `json:"gc_pause_per_second"` GcPause []float64 `json:"gc_pause"` }
func GetGoStats ¶
func GetGoStats() *GoStats
type Metrics ¶
type Metrics struct { GcLast metrics.Gauge GcNext metrics.Gauge GcNum metrics.Gauge GcPausePerSecond metrics.Gauge GoroutineNum metrics.Gauge HeapAlloc metrics.Gauge HeapIdle metrics.Gauge HeapInuse metrics.Gauge HeapObjects metrics.Gauge HeapSys metrics.Gauge MemoryAlloc metrics.Gauge MemoryFrees metrics.Gauge MemoryLookups metrics.Gauge MemoryMallocs metrics.Gauge MemorySys metrics.Gauge StackInUse metrics.Gauge Connections metrics.Gauge ConnectionsSSE metrics.Gauge ConnectionsGRPC metrics.Gauge // contains filtered or unexported fields }
type PlasmaStats ¶
type PlasmaStats struct { Time int64 `json:"time"` Connections int64 `json:"connections"` ConnectionsSSE int64 `json:"connections_sse"` ConnectionsGRPC int64 `json:"connections_grpc"` }
func GetPlasmaStats ¶
func GetPlasmaStats() *PlasmaStats
Click to show internal directories.
Click to hide internal directories.