Versions in this module Expand all Collapse all v0 v0.0.1 Aug 3, 2023 Changes in this version + const UnknownInstance + type AcceleratorStats struct + DutyCycle uint64 + ID string + Make string + MemoryTotal uint64 + MemoryUsed uint64 + Model string + type CPUSetStats struct + MemoryMigrate uint64 + type Cache struct + Id int + Level int + Size uint64 + Type string + type CacheStats struct + LLCOccupancy uint64 + type CloudProvider string + const AWS + const Azure + const GCE + const UnknownProvider + type ContainerInfo struct + Spec ContainerSpec + Stats []*ContainerStats + Subcontainers []ContainerReference + func (ci *ContainerInfo) Eq(b *ContainerInfo) bool + func (ci *ContainerInfo) StatsAfter(ref time.Time) []*ContainerStats + func (ci *ContainerInfo) StatsEndTime() time.Time + func (ci *ContainerInfo) StatsStartTime() time.Time + type ContainerInfoRequest struct + End time.Time + NumStats int + Start time.Time + func DefaultContainerInfoRequest() ContainerInfoRequest + func (r *ContainerInfoRequest) Equals(other ContainerInfoRequest) bool + type ContainerReference struct + Aliases []string + Id string + Name string + Namespace string + type ContainerReferenceSlice []ContainerReference + func (s ContainerReferenceSlice) Len() int + func (s ContainerReferenceSlice) Less(i, j int) bool + func (s ContainerReferenceSlice) Swap(i, j int) + type ContainerSpec struct + Cpu CpuSpec + CreationTime time.Time + CustomMetrics []MetricSpec + Envs map[string]string + HasCpu bool + HasCustomMetrics bool + HasDiskIo bool + HasFilesystem bool + HasHugetlb bool + HasMemory bool + HasNetwork bool + HasProcesses bool + Image string + Labels map[string]string + Memory MemorySpec + Processes ProcessSpec + func (s *ContainerSpec) Eq(b *ContainerSpec) bool + type ContainerStats struct + Accelerators []AcceleratorStats + Cpu CpuStats + CpuSet CPUSetStats + CustomMetrics map[string][]MetricVal + DiskIo DiskIoStats + Filesystem []FsStats + Hugetlb map[string]HugetlbStats + Memory MemoryStats + Network NetworkStats + OOMEvents uint64 + PerfStats []PerfStat + PerfUncoreStats []PerfUncoreStat + Processes ProcessStats + ReferencedMemory uint64 + Resctrl ResctrlStats + TaskStats LoadStats + Timestamp time.Time + func (a *ContainerStats) Eq(b *ContainerStats) bool + func (a *ContainerStats) StatsEq(b *ContainerStats) bool + type Core struct + Caches []Cache + Id int + SocketID int + Threads []int + UncoreCaches []Cache + type CpuCFS struct + Periods uint64 + ThrottledPeriods uint64 + ThrottledTime uint64 + type CpuSchedstat struct + RunPeriods uint64 + RunTime uint64 + RunqueueTime uint64 + type CpuSpec struct + Limit uint64 + Mask string + MaxLimit uint64 + Period uint64 + Quota uint64 + type CpuStats struct + CFS CpuCFS + LoadAverage int32 + Schedstat CpuSchedstat + Usage CpuUsage + type CpuUsage struct + PerCpu []uint64 + System uint64 + Total uint64 + User uint64 + type DataType string + const FloatType + const IntType + type DiskInfo struct + Major uint64 + Minor uint64 + Name string + Scheduler string + Size uint64 + type DiskIoStats struct + IoMerged []PerDiskStats + IoQueued []PerDiskStats + IoServiceBytes []PerDiskStats + IoServiceTime []PerDiskStats + IoServiced []PerDiskStats + IoTime []PerDiskStats + IoWaitTime []PerDiskStats + Sectors []PerDiskStats + type DockerImage struct + Created int64 + ID string + RepoTags []string + Size int64 + VirtualSize int64 + type DockerStatus struct + APIVersion string + Driver string + DriverStatus map[string]string + ExecDriver string + Hostname string + KernelVersion string + NumContainers int + NumImages int + OS string + RootDir string + Version string + type Event struct + ContainerName string + EventData EventData + EventType EventType + Timestamp time.Time + type EventData struct + OomKill *OomKillEventData + type EventType string + const EventContainerCreation + const EventContainerDeletion + const EventOom + const EventOomKill + type FsInfo struct + Capacity uint64 + Device string + DeviceMajor uint64 + DeviceMinor uint64 + HasInodes bool + Inodes uint64 + Type string + type FsStats struct + Available uint64 + BaseUsage uint64 + Device string + HasInodes bool + Inodes uint64 + InodesFree uint64 + IoInProgress uint64 + IoTime uint64 + Limit uint64 + ReadTime uint64 + ReadsCompleted uint64 + ReadsMerged uint64 + SectorsRead uint64 + SectorsWritten uint64 + Type string + Usage uint64 + WeightedIoTime uint64 + WriteTime uint64 + WritesCompleted uint64 + WritesMerged uint64 + type HugePagesInfo struct + NumPages uint64 + PageSize uint64 + type HugetlbStats struct + Failcnt uint64 + MaxUsage uint64 + Usage uint64 + type InstanceID string + const UnNamedInstance + type InstanceType string + type InterfaceStats struct + Name string + RxBytes uint64 + RxDropped uint64 + RxErrors uint64 + RxPackets uint64 + TxBytes uint64 + TxDropped uint64 + TxErrors uint64 + TxPackets uint64 + type LoadStats struct + NrIoWait uint64 + NrRunning uint64 + NrSleeping uint64 + NrStopped uint64 + NrUninterruptible uint64 + type MachineInfo struct + BootID string + CPUVendorID string + CloudProvider CloudProvider + CpuFrequency uint64 + DiskMap map[string]DiskInfo + Filesystems []FsInfo + HugePages []HugePagesInfo + InstanceID InstanceID + InstanceType InstanceType + MachineID string + MemoryByType map[string]*MemoryInfo + MemoryCapacity uint64 + NVMInfo NVMInfo + NetworkDevices []NetInfo + NumCores int + NumPhysicalCores int + NumSockets int + SwapCapacity uint64 + SystemUUID string + Timestamp time.Time + Topology []Node + func (m *MachineInfo) Clone() *MachineInfo + type MachineInfoFactory interface + GetMachineInfo func() (*MachineInfo, error) + GetVersionInfo func() (*VersionInfo, error) + type MemoryBandwidthStats struct + LocalBytes uint64 + TotalBytes uint64 + type MemoryInfo struct + Capacity uint64 + DimmCount uint + type MemoryNumaStats struct + Anon map[uint8]uint64 + File map[uint8]uint64 + Unevictable map[uint8]uint64 + type MemorySpec struct + Limit uint64 + Reservation uint64 + SwapLimit uint64 + type MemoryStats struct + Cache uint64 + ContainerData MemoryStatsMemoryData + Failcnt uint64 + HierarchicalData MemoryStatsMemoryData + KernelUsage uint64 + MappedFile uint64 + MaxUsage uint64 + RSS uint64 + Swap uint64 + Usage uint64 + WorkingSet uint64 + type MemoryStatsMemoryData struct + NumaStats MemoryNumaStats + Pgfault uint64 + Pgmajfault uint64 + type MetricSpec struct + Format DataType + Name string + Type MetricType + Units string + type MetricType string + const MetricCumulative + const MetricGauge + type MetricVal struct + FloatValue float64 + IntValue int64 + Label string + Labels map[string]string + Timestamp time.Time + type MetricValBasic struct + FloatValue float64 + IntValue int64 + Timestamp time.Time + type NVMInfo struct + AppDirectModeCapacity uint64 + AvgPowerBudget uint + MemoryModeCapacity uint64 + type NetInfo struct + MacAddress string + Mtu int64 + Name string + Speed int64 + type NetworkStats struct + Interfaces []InterfaceStats + Tcp TcpStat + Tcp6 TcpStat + TcpAdvanced TcpAdvancedStat + Udp UdpStat + Udp6 UdpStat + type Node struct + Caches []Cache + Cores []Core + Distances []uint64 + HugePages []HugePagesInfo + Id int + Memory uint64 + func (n *Node) AddNodeCache(c Cache) + func (n *Node) AddPerCoreCache(c Cache) + func (n *Node) AddThread(thread int, core int) + func (n *Node) FindCore(id int) (bool, int) + func (n *Node) FindCoreByThread(thread int) (bool, int) + type OomKillEventData struct + Pid int + ProcessName string + type PerDiskStats struct + Device string + Major uint64 + Minor uint64 + Stats map[string]uint64 + type PerfStat struct + Cpu int + type PerfUncoreStat struct + PMU string + Socket int + type PerfValue struct + Name string + ScalingRatio float64 + Value uint64 + type ProcessSpec struct + Limit uint64 + type ProcessStats struct + FdCount uint64 + ProcessCount uint64 + SocketCount uint64 + ThreadsCurrent uint64 + ThreadsMax uint64 + Ulimits []UlimitSpec + type ResctrlStats struct + Cache []CacheStats + MemoryBandwidth []MemoryBandwidthStats + type TcpAdvancedStat struct + ActiveOpens uint64 + AttemptFails uint64 + CurrEstab uint64 + DelayedACKLocked uint64 + DelayedACKLost uint64 + DelayedACKs uint64 + EmbryonicRsts uint64 + EstabResets uint64 + IPReversePathFilter uint64 + InCsumErrors uint64 + InErrs uint64 + InSegs uint64 + ListenDrops uint64 + ListenOverflows uint64 + LockDroppedIcmps uint64 + MaxConn int64 + OfoPruned uint64 + OutOfWindowIcmps uint64 + OutRsts uint64 + OutSegs uint64 + PAWSActive uint64 + PAWSEstab uint64 + PFMemallocDrop uint64 + PassiveOpens uint64 + PruneCalled uint64 + RcvPruned uint64 + RetransSegs uint64 + RtoAlgorithm uint64 + RtoMax uint64 + RtoMin uint64 + SyncookiesFailed uint64 + SyncookiesRecv uint64 + SyncookiesSent uint64 + TCPAbortFailed uint64 + TCPAbortOnClose uint64 + TCPAbortOnData uint64 + TCPAbortOnLinger uint64 + TCPAbortOnMemory uint64 + TCPAbortOnTimeout uint64 + TCPBacklogDrop uint64 + TCPDSACKIgnoredNoUndo uint64 + TCPDSACKIgnoredOld uint64 + TCPDSACKOfoRecv uint64 + TCPDSACKOfoSent uint64 + TCPDSACKOldSent uint64 + TCPDSACKRecv uint64 + TCPDSACKUndo uint64 + TCPDeferAcceptDrop uint64 + TCPFACKReorder uint64 + TCPFastOpenActive uint64 + TCPFastOpenActiveFail uint64 + TCPFastOpenCookieReqd uint64 + TCPFastOpenListenOverflow uint64 + TCPFastOpenPassive uint64 + TCPFastOpenPassiveFail uint64 + TCPFastRetrans uint64 + TCPFullUndo uint64 + TCPHPAcks uint64 + TCPHPHits uint64 + TCPLossFailures uint64 + TCPLossProbeRecovery uint64 + TCPLossProbes uint64 + TCPLossUndo uint64 + TCPLostRetransmit uint64 + TCPMD5Failure uint64 + TCPMD5NotFound uint64 + TCPMD5Unexpected uint64 + TCPMemoryPressures uint64 + TCPMemoryPressuresChrono uint64 + TCPMinTTLDrop uint64 + TCPOrigDataSent uint64 + TCPPartialUndo uint64 + TCPPureAcks uint64 + TCPRcvCollapsed uint64 + TCPRenoFailures uint64 + TCPRenoRecovery uint64 + TCPRenoRecoveryFail uint64 + TCPRenoReorder uint64 + TCPReqQFullDoCookies uint64 + TCPReqQFullDrop uint64 + TCPRetransFail uint64 + TCPSACKDiscard uint64 + TCPSACKReneging uint64 + TCPSACKReorder uint64 + TCPSackFailures uint64 + TCPSackMerged uint64 + TCPSackRecovery uint64 + TCPSackRecoveryFail uint64 + TCPSackShiftFallback uint64 + TCPSackShifted uint64 + TCPSlowStartRetrans uint64 + TCPSpuriousRTOs uint64 + TCPSynRetrans uint64 + TCPTSReorder uint64 + TCPTimeWaitOverflow uint64 + TCPTimeouts uint64 + TW uint64 + TWKilled uint64 + TWRecycled uint64 + type TcpStat struct + Close uint64 + CloseWait uint64 + Closing uint64 + Established uint64 + FinWait1 uint64 + FinWait2 uint64 + LastAck uint64 + Listen uint64 + SynRecv uint64 + SynSent uint64 + TimeWait uint64 + type UdpStat struct + Dropped uint64 + Listen uint64 + RxQueued uint64 + TxQueued uint64 + type UlimitSpec struct + HardLimit int64 + Name string + SoftLimit int64 + type VersionInfo struct + CadvisorRevision string + CadvisorVersion string + ContainerOsVersion string + DockerAPIVersion string + DockerVersion string + KernelVersion string