Documentation ¶
Index ¶
- Variables
- func BuildMappers()
- func CheckFS(file string, content string) error
- func Collect()
- func CollectorMetrics() []*dataobj.MetricValue
- func CounterToGauge(item *dataobj.MetricValue) error
- func CounterValue(metric string, val interface{}, tags ...string) *dataobj.MetricValue
- func CpuContentSwitches() float64
- func CpuGuest() float64
- func CpuIdle() float64
- func CpuIowait() float64
- func CpuIrq() float64
- func CpuMetrics() []*dataobj.MetricValue
- func CpuNice() float64
- func CpuPrepared() bool
- func CpuSoftIrq() float64
- func CpuSteal() float64
- func CpuSystem() float64
- func CpuUser() float64
- func CurrentCpuSwitches() uint64
- func DeviceMetrics() (L []*dataobj.MetricValue)
- func EntityNumMetrics() []*dataobj.MetricValue
- func FsKernelMetrics() (L []*dataobj.MetricValue)
- func FsRWMetrics() (L []*dataobj.MetricValue)
- func GaugeValue(metric string, val interface{}, tags ...string) *dataobj.MetricValue
- func IODelta(device string, f func([2]*nux.DiskStats) uint64) uint64
- func IOMsecRead(arr [2]*nux.DiskStats) uint64
- func IOMsecTotal(arr [2]*nux.DiskStats) uint64
- func IOMsecWeightedTotal(arr [2]*nux.DiskStats) uint64
- func IOMsecWrite(arr [2]*nux.DiskStats) uint64
- func IOReadMerged(arr [2]*nux.DiskStats) uint64
- func IOReadRequests(arr [2]*nux.DiskStats) uint64
- func IOReadSectors(arr [2]*nux.DiskStats) uint64
- func IOStatsMetrics() (L []*dataobj.MetricValue)
- func IOWriteMerged(arr [2]*nux.DiskStats) uint64
- func IOWriteRequests(arr [2]*nux.DiskStats) uint64
- func IOWriteSectors(arr [2]*nux.DiskStats) uint64
- func InitRpcClients()
- func LoadAvgMetrics() []*dataobj.MetricValue
- func MemMetrics() []*dataobj.MetricValue
- func NetMetrics() (ret []*dataobj.MetricValue)
- func NewMetricValue(metric string, val interface{}, dataType string, tags ...string) *dataobj.MetricValue
- func NfMetrics() []*dataobj.MetricValue
- func NtpOffsetMetrics() (L []*dataobj.MetricValue)
- func PrepareCpuStat()
- func PrepareDiskStats()
- func ProcsNumMetrics() []*dataobj.MetricValue
- func Push(metricItems []*dataobj.MetricValue) error
- func ShouldHandleDevice(device string) bool
- func SocketStatSummaryMetrics() (L []*dataobj.MetricValue)
- func TS(arr [2]*nux.DiskStats) uint64
- func UpdateCpuStat() error
- func UpdateDiskStats() error
- type CpuStats
- type CumIfStat
- type FuncsAndInterval
- type RpcClientContainer
Constants ¶
This section is empty.
Variables ¶
View Source
var Mappers []FuncsAndInterval
Functions ¶
func BuildMappers ¶
func BuildMappers()
func CollectorMetrics ¶
func CollectorMetrics() []*dataobj.MetricValue
func CounterToGauge ¶ added in v1.1.0
func CounterToGauge(item *dataobj.MetricValue) error
func CounterValue ¶
func CounterValue(metric string, val interface{}, tags ...string) *dataobj.MetricValue
func CpuContentSwitches ¶
func CpuContentSwitches() float64
func CpuMetrics ¶
func CpuMetrics() []*dataobj.MetricValue
func CpuPrepared ¶
func CpuPrepared() bool
func CpuSoftIrq ¶
func CpuSoftIrq() float64
func CurrentCpuSwitches ¶
func CurrentCpuSwitches() uint64
func DeviceMetrics ¶
func DeviceMetrics() (L []*dataobj.MetricValue)
func EntityNumMetrics ¶
func EntityNumMetrics() []*dataobj.MetricValue
func FsKernelMetrics ¶
func FsKernelMetrics() (L []*dataobj.MetricValue)
func FsRWMetrics ¶
func FsRWMetrics() (L []*dataobj.MetricValue)
func GaugeValue ¶
func GaugeValue(metric string, val interface{}, tags ...string) *dataobj.MetricValue
func IOMsecRead ¶
func IOMsecTotal ¶
func IOMsecWeightedTotal ¶
func IOMsecWrite ¶
func IOReadMerged ¶
func IOReadRequests ¶
func IOReadSectors ¶
func IOStatsMetrics ¶
func IOStatsMetrics() (L []*dataobj.MetricValue)
func IOWriteMerged ¶
func IOWriteRequests ¶
func IOWriteSectors ¶
func InitRpcClients ¶ added in v1.2.1
func InitRpcClients()
func LoadAvgMetrics ¶
func LoadAvgMetrics() []*dataobj.MetricValue
func MemMetrics ¶
func MemMetrics() []*dataobj.MetricValue
func NetMetrics ¶
func NetMetrics() (ret []*dataobj.MetricValue)
func NewMetricValue ¶
func NewMetricValue(metric string, val interface{}, dataType string, tags ...string) *dataobj.MetricValue
func NfMetrics ¶
func NfMetrics() []*dataobj.MetricValue
func NtpOffsetMetrics ¶
func NtpOffsetMetrics() (L []*dataobj.MetricValue)
func PrepareCpuStat ¶
func PrepareCpuStat()
func PrepareDiskStats ¶
func PrepareDiskStats()
func ProcsNumMetrics ¶
func ProcsNumMetrics() []*dataobj.MetricValue
func Push ¶
func Push(metricItems []*dataobj.MetricValue) error
func ShouldHandleDevice ¶
func SocketStatSummaryMetrics ¶
func SocketStatSummaryMetrics() (L []*dataobj.MetricValue)
func UpdateCpuStat ¶
func UpdateCpuStat() error
func UpdateDiskStats ¶
func UpdateDiskStats() error
Types ¶
type CpuStats ¶
type FuncsAndInterval ¶
type FuncsAndInterval struct { Fs []func() []*dataobj.MetricValue Interval int }
type RpcClientContainer ¶ added in v1.2.1
func (*RpcClientContainer) Del ¶ added in v1.2.2
func (rcc *RpcClientContainer) Del(addr string)
Click to show internal directories.
Click to hide internal directories.