Versions in this module Expand all Collapse all v1 v1.0.1 Dec 7, 2016 v1.0.0 Sep 30, 2016 Changes in this version + var Mappers []FuncsAndInterval + var ModNt = syscall.NewLazyDLL("ntdll.dll") + var ModPdh = syscall.NewLazyDLL("pdh.dll") + var Modkernel32 = syscall.NewLazyDLL("kernel32.dll") + var MsSQL_Mertics = map[string]string + var MsSQL_Mertics_instance = map[string]string + var PdhAddCounter = ModPdh.NewProc("PdhAddCounterW") + var PdhCloseQuery = ModPdh.NewProc("PdhCloseQuery") + var PdhCollectQueryData = ModPdh.NewProc("PdhCollectQueryData") + var PdhGetFormattedCounterValue = ModPdh.NewProc("PdhGetFormattedCounterValue") + var PdhOpenQuery = ModPdh.NewProc("PdhOpenQuery") + var ProcGetSystemTimes = Modkernel32.NewProc("GetSystemTimes") + var ProcNtQuerySystemInformation = ModNt.NewProc("NtQuerySystemInformation") + func AgentMetrics() []*model.MetricValue + func BuildMappers() + func CheckCollector() + func CoreNetMetrics(ifacePrefix []string) (L []*model.MetricValue) + func CounterValue(metric string, val interface{}, tags ...string) *model.MetricValue + func CpuIdle() float64 + func CpuMetrics() []*model.MetricValue + func CpuPrepared() bool + func CpuSystem() float64 + func CpuUser() float64 + func DeviceMetrics() (L []*model.MetricValue) + func DiskIOMetrics() (L []*model.MetricValue) + func GaugeValue(metric string, val interface{}, tags ...string) *model.MetricValue + func IOCounters() (map[string]diskIOCounter, error) + func IsTCPPortUsed(port int64) bool + func MemMetrics() []*model.MetricValue + func NetMetrics() []*model.MetricValue + func NewMetricValue(metric string, val interface{}, dataType string, tags ...string) *model.MetricValue + func PortMetrics() (L []*model.MetricValue) + func ProcMetrics() (L []*model.MetricValue) + func TcpipMetrics() (L []*model.MetricValue) + func UpdateCpuStat() error + type CPUTimesStat struct + Idle float64 + System float64 + Total float64 + User float64 + func CPUTimes(percpu bool) ([]CPUTimesStat, error) + type FILETIME struct + DwHighDateTime uint32 + DwLowDateTime uint32 + type FuncsAndInterval struct + Fs []func() []*model.MetricValue + Interval int + type P struct + func Processes() ([]P, error) + type Tcpipdatastat struct + ConActive uint64 + ConEstablished uint64 + ConFailures uint64 + ConPassive uint64 + ConReset uint64 + func TcpipCounters() ([]Tcpipdatastat, error) + type Win32_PerfFormattedData struct + AvgDiskSecPerRead_Base uint32 + AvgDiskSecPerWrite_Base uint32 + DiskReadBytesPerSec uint64 + DiskReadsPerSec uint32 + DiskWriteBytesPerSec uint64 + DiskWritesPerSec uint32 + Name string + func PerfFormattedData() ([]Win32_PerfFormattedData, error) + type Win32_PerfFormattedData_IDLE struct + Name string + PercentIdleTime uint64 + func PerfFormattedData_IDLE() ([]Win32_PerfFormattedData_IDLE, error) + type Win32_PerfRawData_W3SVC_WebService struct + BytesReceivedPersec uint64 + BytesSentPersec uint64 + CGIRequestsPersec uint32 + ConnectionAttemptsPersec uint32 + CopyRequestsPersec uint32 + CurrentConnections uint32 + DeleteRequestsPersec uint32 + GetRequestsPersec uint32 + HeadRequestsPersec uint32 + ISAPIExtensionRequestsPersec uint32 + LockRequestsPersec uint32 + LockedErrorsPersec uint32 + MkcolRequestsPersec uint32 + MoveRequestsPersec uint32 + Name string + NotFoundErrorsPersec uint32 + OptionsRequestsPersec uint32 + PostRequestsPersec uint32 + PropfindRequestsPersec uint32 + ProppatchRequestsPersec uint32 + PutRequestsPersec uint32 + SearchRequestsPersec uint32 + ServiceUptime uint32 + TraceRequestsPersec uint32 + UnlockRequestsPersec uint32 + func IIsCounters() ([]Win32_PerfRawData_W3SVC_WebService, error) + type Win32_Processor struct + Family uint16 + LoadPercentage *uint16 + Manufacturer string + MaxClockSpeed uint32 + Name string + NumberOfLogicalProcessors uint32 + ProcessorId *string + Stepping *string + type Win32_TCPPerfFormattedData struct + ConnectionFailures uint64 + ConnectionsActive uint64 + ConnectionsEstablished uint64 + ConnectionsPassive uint64 + ConnectionsReset uint64