stat

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

*------------------------------------------------------------**

* @filename stat/stat.go
* @author   jinycoo
* @version  1.0.0
* @date     2019-07-25 14:32
* @desc     stat - 统计
**------------------------------------------------------------*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat interface {
	Timing(name string, time int64, extra ...string)
	Incr(name string, extra ...string) // name,ext...,code
	State(name string, val int64, extra ...string)
}

Stat interface.

var (
	// http
	HTTPClient Stat = prom.HTTPClient
	HTTPServer Stat = prom.HTTPServer
	// storage
	Cache Stat = prom.LibClient
	DB    Stat = prom.LibClient
	// rpc
	RPCClient Stat = prom.RPCClient
	RPCServer Stat = prom.RPCServer
)

default stat struct.

Source Files

Directories

Path Synopsis
*------------------------------------------------------------** * @filename prom/prometheus.go * @author jinycoo * @version 1.0.0 * @date 2019-07-25 14:34 * @desc prom - prometheus monitor **------------------------------------------------------------* *------------------------------------------------------------** * @filename prom/xxx.go * @author jinycoo - caojingyin@jinycoo.com * @version 1.0.0 * @date 2019/12/31 18:01 * @desc prom - summary **------------------------------------------------------------*
*------------------------------------------------------------** * @filename prom/prometheus.go * @author jinycoo * @version 1.0.0 * @date 2019-07-25 14:34 * @desc prom - prometheus monitor **------------------------------------------------------------* *------------------------------------------------------------** * @filename prom/xxx.go * @author jinycoo - caojingyin@jinycoo.com * @version 1.0.0 * @date 2019/12/31 18:01 * @desc prom - summary **------------------------------------------------------------*
*------------------------------------------------------------** * @filename summary/summary.go * @author jinycoo * @version 1.0.0 * @date 2019-07-31 15:07 * @desc summary - summary **------------------------------------------------------------*
*------------------------------------------------------------** * @filename summary/summary.go * @author jinycoo * @version 1.0.0 * @date 2019-07-31 15:07 * @desc summary - summary **------------------------------------------------------------*
sys
cpu
*------------------------------------------------------------** * @filename cpu/cgroup.go * @author jinycoo * @version 1.0.0 * @date 2019-08-20 09:56 * @desc cpu - cgroup build linux **------------------------------------------------------------* *------------------------------------------------------------** * @filename cpu/cpu.o * @author jinycoo * @version 1.0.0 * @date 2019-08-15 15:11 * @desc cpu - cpu info **------------------------------------------------------------* +build linux *------------------------------------------------------------** * @filename cpu/cpu_linux.go * @author jinycoo * @version 1.0.0 * @date 2019-08-16 16:44 * @desc cpu - linux os **------------------------------------------------------------* *------------------------------------------------------------** * @filename cpu/cpu_other.go * @author jinycoo * @version 1.0.0 * @date 2019-08-16 16:45 * @desc cpu - other **------------------------------------------------------------* *------------------------------------------------------------** * @filename cpu/ * @author jinycoo * @version 1.0.0 * @date 2019-08-20 09:54 * @desc cpu - **------------------------------------------------------------*
*------------------------------------------------------------** * @filename cpu/cgroup.go * @author jinycoo * @version 1.0.0 * @date 2019-08-20 09:56 * @desc cpu - cgroup build linux **------------------------------------------------------------* *------------------------------------------------------------** * @filename cpu/cpu.o * @author jinycoo * @version 1.0.0 * @date 2019-08-15 15:11 * @desc cpu - cpu info **------------------------------------------------------------* +build linux *------------------------------------------------------------** * @filename cpu/cpu_linux.go * @author jinycoo * @version 1.0.0 * @date 2019-08-16 16:44 * @desc cpu - linux os **------------------------------------------------------------* *------------------------------------------------------------** * @filename cpu/cpu_other.go * @author jinycoo * @version 1.0.0 * @date 2019-08-16 16:45 * @desc cpu - other **------------------------------------------------------------* *------------------------------------------------------------** * @filename cpu/ * @author jinycoo * @version 1.0.0 * @date 2019-08-20 09:54 * @desc cpu - **------------------------------------------------------------*

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL