Documentation ¶
Index ¶
- type BlkIOCgDataV1
- type BlkIOCgDataV2
- type BlkioCgV1
- type BlkioCgV2
- type BpfFsData
- type BpfIOData
- type BpfIoLatencyV2
- type BpfMemData
- type BpfNetData
- type CPU
- type CPUBasicInfoV1
- type CPUCgDataV1
- type CPUCgDataV2
- type CPUList
- type CPUSetCgDataV1
- type CPUSetCgDataV2
- type CPUStats
- type CgroupDataInner
- type CpiData
- type CpuacctCgV1
- type CpuacctCgV2
- type Cpus
- type CpusetCgV1
- type CpusetCgV2
- type DeviceIoDetails
- type DiskIo
- type DriverLatencyV2
- type Full
- type Load
- type MalachiteCgroupInfo
- type MalachiteCgroupResponse
- type MalachiteCgroupV1Info
- type MalachiteCgroupV2Info
- type MalachiteSystemComputeResponse
- type MalachiteSystemDiskIoResponse
- type MalachiteSystemMemoryResponse
- type MalachiteSystemNetworkResponse
- type MemLocalEventsV2
- type MemStatsV2
- type MemoryCgDataV1
- type MemoryCgDataV2
- type MemoryCgV1
- type MemoryCgV2
- type Mems
- type NetClsCg
- type NetClsCgData
- type NetworkCard
- type Numa
- type NumaStatsV1
- type NumaStatsV2
- type Pressure
- type Some
- type SubSystemGroupsV1
- type SubSystemGroupsV2
- type SumLatencyV2
- type System
- type SystemComputeData
- type SystemDiskIoData
- type SystemMemoryData
- type SystemNetworkData
- type TCP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlkIOCgDataV1 ¶
type BlkIOCgDataV1 struct { FullPath string `json:"full_path"` UserPath string `json:"user_path"` IopsDetails map[string]DeviceIoDetails `json:"iops_details"` BpsDetails map[string]DeviceIoDetails `json:"bps_details"` IopsTotal uint64 `json:"iops_total"` BpsTotal uint64 `json:"bps_total"` BpfFsData BpfFsData `json:"bpf_fs_data"` OldBpfFsData BpfFsData `json:"old_bpf_fs_data"` BpfIOData BpfIOData `json:"bpf_io_data"` UpdateTime int64 `json:"update_time"` }
type BlkIOCgDataV2 ¶
type BlkIOCgDataV2 struct { FullPath string `json:"full_path"` UserPath string `json:"user_path"` IoStat map[string]DeviceIoDetails `json:"io_stat"` IoMax map[string]uint64 `json:"io_max"` IoPressure Pressure `json:"io_pressure"` IoLatency map[string]uint64 `json:"io_latency"` IoWeight map[string]uint64 `json:"io_weight"` BpfFsData BpfFsData `json:"bpf_fs_data"` OldBpfFsData BpfFsData `json:"old_bpf_fs_data"` BpfIoLatency BpfIoLatencyV2 `json:"bpf_io_latency"` BpfIOData BpfIOData `json:"bpf_io_data"` UpdateTime int64 `json:"update_time"` }
type BlkioCgV1 ¶
type BlkioCgV1 struct { V1 struct { BlkIOData BlkIOCgDataV1 `json:"V1"` } `json:"BlkIO"` }
type BlkioCgV2 ¶
type BlkioCgV2 struct { V2 struct { BlkIOData BlkIOCgDataV2 `json:"V2"` } `json:"BlkIO"` }
type BpfIoLatencyV2 ¶
type BpfIoLatencyV2 struct { Pcts int `json:"pcts"` SumLatency SumLatencyV2 `json:"sum_latency"` DriverLatency DriverLatencyV2 `json:"driver_latency"` }
type BpfMemData ¶
type BpfMemData struct { OomCnt uint64 `json:"mem_oom_cnt"` MemReclaimCnt uint64 `json:"mem_reclaim_cnt"` MemReclaimSettingSum uint64 `json:"mem_reclaim_setting_sum"` MemReclaimTime uint64 `json:"mem_reclaim_time"` MemCompactCnt uint64 `json:"mem_compact_cnt"` MemCompactFailCnt uint64 `json:"mem_compact_fail_cnt"` MemCompactSuccessCnt uint64 `json:"mem_compact_success_cnt"` MemCompactTime uint64 `json:"mem_compact_time"` MemAllocCnt uint64 `json:"mem_alloc_cnt"` MemAllocTime uint64 `json:"mem_alloc_time"` MemBalanceDirty uint64 `json:"mem_balance_dirty"` }
type BpfNetData ¶
type BpfNetData struct { NetTCPRx uint64 `json:"net_tcp_rx"` NetTCPRxBytes uint64 `json:"net_tcp_rx_bytes"` NetUDPRx uint64 `json:"net_udp_rx"` NetUDPRxBytes uint64 `json:"net_udp_rx_bytes"` NetTCPTx uint64 `json:"net_tcp_tx"` NetTCPTxBytes uint64 `json:"net_tcp_tx_bytes"` NetUDPTx uint64 `json:"net_udp_tx"` NetUDPTxBytes uint64 `json:"net_udp_tx_bytes"` }
type CPUBasicInfoV1 ¶
type CPUCgDataV1 ¶
type CPUCgDataV1 struct { FullPath string `json:"full_path"` CfsQuotaUs int64 `json:"cfs_quota_us"` CfsPeriodUs int64 `json:"cfs_period_us"` OldCPUBasicInfo CPUBasicInfoV1 `json:"old_cpu_basic_info"` NewCPUBasicInfo CPUBasicInfoV1 `json:"new_cpu_basic_info"` CPUUsageRatio float64 `json:"cpu_usage_ratio"` CPUUserUsageRatio float64 `json:"cpu_user_usage_ratio"` CPUSysUsageRatio float64 `json:"cpu_sys_usage_ratio"` CPUNrThrottled uint64 `json:"cpu_nr_throttled"` CPUNrPeriods uint64 `json:"cpu_nr_periods"` CPUThrottledTime uint64 `json:"cpu_throttled_time"` TaskNrIoWait uint64 `json:"task_nr_iowait"` TaskNrUninterruptible uint64 `json:"task_nr_unint"` TaskNrRunning uint64 `json:"task_nr_runnable"` TaskNrSleeping uint64 `json:"task_nr_sleeping"` Load Load `json:"load"` Cycles uint64 `json:"cycles"` Instructions uint64 `json:"instructions"` L3Misses uint64 `json:"l3_misses"` OcrReadDrams uint64 `json:"ocr_read_drams"` StoreIns uint64 `json:"store_ins"` StoreAllIns uint64 `json:"store_all_ins"` ImcWrites uint64 `json:"imc_writes"` UpdateTime int64 `json:"update_time"` }
type CPUCgDataV2 ¶
type CPUCgDataV2 struct { FullPath string `json:"full_path"` CPUStats CPUStats `json:"cpu_stats"` CPUPressure Pressure `json:"cpu_pressure"` Weight int `json:"weight"` WeightNice int `json:"weight_nice"` MaxBurst int `json:"max_burst"` Max uint64 `json:"max"` MaxPeriod int64 `json:"max_period"` CPUUsageRatio float64 `json:"cpu_usage_ratio"` CPUUserUsageRatio float64 `json:"cpu_user_usage_ratio"` CPUSysUsageRatio float64 `json:"cpu_sys_usage_ratio"` TaskNrIoWait uint64 `json:"task_nr_iowait"` TaskNrUninterruptible uint64 `json:"task_nr_unint"` TaskNrRunning uint64 `json:"task_nr_runnable"` TaskNrSleeping uint64 `json:"task_nr_sleeping"` Load Load `json:"load"` Cycles uint64 `json:"cycles"` Instructions uint64 `json:"instructions"` L3Misses uint64 `json:"l3_misses"` OcrReadDrams uint64 `json:"ocr_read_drams"` StoreIns uint64 `json:"store_ins"` StoreAllIns uint64 `json:"store_all_ins"` ImcWrites uint64 `json:"imc_writes"` UpdateTime int64 `json:"update_time"` }
type CPUSetCgDataV1 ¶
type CPUSetCgDataV2 ¶
type CgroupDataInner ¶
type CgroupDataInner struct { MountPoint string `json:"mount_point"` UserPath string `json:"user_path"` CgroupType string `json:"cgroup_type"` SubSystemGroups json.RawMessage `json:"sub_system_groups"` }
type CpuacctCgV1 ¶
type CpuacctCgV1 struct { V1 struct { CPUData CPUCgDataV1 `json:"V1"` } `json:"Cpu"` }
type CpuacctCgV2 ¶
type CpuacctCgV2 struct { V2 struct { CPUData CPUCgDataV2 `json:"V2"` } `json:"Cpu"` }
type CpusetCgV1 ¶
type CpusetCgV1 struct { V1 struct { CPUSetData CPUSetCgDataV1 `json:"V1"` } `json:"CpuSet"` }
type CpusetCgV2 ¶
type CpusetCgV2 struct { V2 struct { CPUSetData CPUSetCgDataV2 `json:"V2"` } `json:"CpuSet"` }
type DeviceIoDetails ¶
type DiskIo ¶
type DiskIo struct { PrimaryDeviceID int `json:"primary_device_id"` SecondaryDeviceID int `json:"secondary_device_id"` DeviceName string `json:"device_name"` IoRead uint64 `json:"io_read"` IoWrite uint64 `json:"io_write"` IoBusy uint64 `json:"io_busy"` DiskType string `json:"disk_type"` WBTValue int64 `json:"wbt_lat_usec"` }
type DriverLatencyV2 ¶
type MalachiteCgroupInfo ¶
type MalachiteCgroupInfo struct { MountPoint string `json:"mount_point"` UserPath string `json:"user_path"` CgroupType string `json:"cgroup_type"` V1 *MalachiteCgroupV1Info V2 *MalachiteCgroupV2Info }
type MalachiteCgroupResponse ¶
type MalachiteCgroupResponse struct { Status int `json:"status"` Data CgroupDataInner `json:"data"` }
type MalachiteCgroupV1Info ¶
type MalachiteCgroupV1Info struct { Memory *MemoryCgDataV1 `json:"memory"` Blkio *BlkIOCgDataV1 `json:"blkio"` NetCls *NetClsCgData `json:"net_cls"` CpuSet *CPUSetCgDataV1 `json:"cpuset"` Cpu *CPUCgDataV1 `json:"cpu"` }
type MalachiteCgroupV2Info ¶
type MalachiteCgroupV2Info struct { Memory *MemoryCgDataV2 `json:"memory"` Blkio *BlkIOCgDataV2 `json:"blkio"` NetCls *NetClsCgData `json:"net_cls"` CpuSet *CPUSetCgDataV2 `json:"cpuset"` Cpu *CPUCgDataV2 `json:"cpu"` }
type MalachiteSystemComputeResponse ¶
type MalachiteSystemComputeResponse struct { Status int `json:"status"` Data SystemComputeData `json:"data"` }
type MalachiteSystemDiskIoResponse ¶
type MalachiteSystemDiskIoResponse struct { Status int `json:"status"` Data SystemDiskIoData `json:"data"` }
type MalachiteSystemMemoryResponse ¶
type MalachiteSystemMemoryResponse struct { Status int `json:"status"` Data SystemMemoryData `json:"data"` }
type MalachiteSystemNetworkResponse ¶
type MalachiteSystemNetworkResponse struct { Status int `json:"status"` Data SystemNetworkData `json:"data"` }
type MemLocalEventsV2 ¶
type MemStatsV2 ¶
type MemStatsV2 struct { Anon uint64 `json:"anon"` File uint64 `json:"file"` Kernel uint64 `json:"kernel"` KernelStack uint64 `json:"kernel_stack"` Sock uint64 `json:"sock"` Shmem uint64 `json:"shmem"` FileMapped uint64 `json:"file_mapped"` FileDirty uint64 `json:"file_dirty"` FileWriteback uint64 `json:"file_writeback"` AnonThp uint64 `json:"anon_thp"` InactiveAnon uint64 `json:"inactive_anon"` ActiveAnon uint64 `json:"active_anon"` InactiveFile uint64 `json:"inactive_file"` ActiveFile uint64 `json:"active_file"` Unevictable uint64 `json:"unevictable"` SlabReclaimable uint64 `json:"slab_reclaimable"` SlabUnreclaimable uint64 `json:"slab_unreclaimable"` Slab uint64 `json:"slab"` BgdReclaim uint64 `json:"bgd_reclaim"` WorkingsetRefault uint64 `json:"workingset_refault"` WorkingsetRefaultAnon uint64 `json:"workingset_refault_anon"` WorkingsetRefaultFile uint64 `json:"workingset_refault_file"` WorkingsetActivate uint64 `json:"workingset_activate"` WorkingsetActivateAnon uint64 `json:"workingset_activate_anon"` WorkingsetActivateFile uint64 `json:"workingset_activate_file"` WorkingsetRestoreAnon uint64 `json:"workingset_restore_anon"` WorkingsetRestoreFile uint64 `json:"workingset_restore_file"` WorkingsetNodereclaim uint64 `json:"workingset_nodereclaim"` Pgfault uint64 `json:"pgfault"` Pgmajfault uint64 `json:"pgmajfault"` Pgrefill uint64 `json:"pgrefill"` Pgscan uint64 `json:"pgscan"` Pgsteal uint64 `json:"pgsteal"` PgscanKswapd uint64 `json:"pgscan_kswapd"` PgscanDirect uint64 `json:"pgscan_direct"` PgstealKswapd uint64 `json:"pgsteal_kswapd"` PgstealDirect uint64 `json:"pgsteal_direct"` Pgactivate uint64 `json:"pgactivate"` Pgdeactivate uint64 `json:"pgdeactivate"` Pglazyfree uint64 `json:"pglazyfree"` Pglazyfreed uint64 `json:"pglazyfreed"` ThpFaultAlloc uint64 `json:"thp_fault_alloc"` ThpCollapseAlloc uint64 `json:"thp_collapse_alloc"` }
type MemoryCgDataV1 ¶
type MemoryCgDataV1 struct { FullPath string `json:"full_path"` MemoryLimitInBytes uint64 `json:"memory_limit_in_bytes"` MemoryUsageInBytes uint64 `json:"memory_usage_in_bytes"` KernMemoryUsageInBytes uint64 `json:"kern_memory_usage_in_bytes"` KernMemoryTcpLimitInBytes uint64 `json:"kern_tcp_memory_limit_in_bytes"` KernMemoryTcpUsageInBytes uint64 `json:"kern_tcp_memory_usage_in_bytes"` Cache uint64 `json:"cache"` Rss uint64 `json:"rss"` Shmem uint64 `json:"shmem"` Dirty uint64 `json:"dirty"` KswapdSteal uint64 `json:"kswapd_steal"` Writeback uint64 `json:"writeback"` Pgfault uint64 `json:"pgfault"` Pgmajfault uint64 `json:"pgmajfault"` Allocstall uint64 `json:"allocstall"` TotalCache uint64 `json:"total_cache"` TotalRss uint64 `json:"total_rss"` TotalShmem uint64 `json:"total_shmem"` TotalDirty uint64 `json:"total_dirty"` TotalKswapdSteal uint64 `json:"total_kswapd_steal"` TotalWriteback uint64 `json:"total_writeback"` TotalPgfault uint64 `json:"total_pgfault"` TotalPgmajfault uint64 `json:"total_pgmajfault"` TotalAllocstall uint64 `json:"total_allocstall"` WatermarkScaleFactor interface{} `json:"watermark_scale_factor"` BpfMemStat BpfMemData `json:"bpf_mem_data"` NumaStats []NumaStatsV1 `json:"numa_stat"` UpdateTime int64 `json:"update_time"` }
type MemoryCgDataV2 ¶
type MemoryCgDataV2 struct { FullPath string `json:"full_path"` UserPath string `json:"user_path"` MemStats MemStatsV2 `json:"mem_stats"` MemNumaStats map[string]NumaStatsV2 `json:"mem_numa_stats"` MemPressure Pressure `json:"mem_pressure"` MemLocalEvents MemLocalEventsV2 `json:"mem_local_events"` MemoryUsageInBytes uint64 `json:"memory_usage_in_bytes"` Max uint64 `json:"max"` High uint64 `json:"high"` Low uint64 `json:"low"` Min uint64 `json:"min"` SwapMax uint64 `json:"swap_max"` WatermarkScaleFactor interface{} `json:"watermark_scale_factor"` BpfMemStat BpfMemData `json:"bpf_mem_data"` UpdateTime int64 `json:"update_time"` }
type MemoryCgV1 ¶
type MemoryCgV1 struct { V1 struct { MemoryV1Data MemoryCgDataV1 `json:"V1"` } `json:"Memory"` }
type MemoryCgV2 ¶
type MemoryCgV2 struct { V2 struct { MemoryData MemoryCgDataV2 `json:"V2"` } `json:"Memory"` }
type NetClsCg ¶
type NetClsCg struct {
NetData NetClsCgData `json:"Net"`
}
type NetClsCgData ¶
type NetClsCgData struct { FullPath string `json:"full_path"` UserPath string `json:"user_path"` BpfNetData BpfNetData `json:"bpf_net_data"` OldBpfNetData BpfNetData `json:"old_bpf_net_data"` UpdateTime int64 `json:"update_time"` }
type NetworkCard ¶
type NetworkCard struct { Name string `json:"name"` ReceiveBytes uint64 `json:"receive_bytes"` ReceivePackets uint64 `json:"receive_packets"` ReceiveErrs uint64 `json:"receive_errs"` ReceiveDrop uint64 `json:"receive_drop"` ReceiveFifo uint64 `json:"receive_fifo"` ReceiveFrame uint64 `json:"receive_frame"` ReceiveCompressed uint64 `json:"receive_compressed"` ReceiveMulticast uint64 `json:"receive_multicast"` TransmitBytes uint64 `json:"transmit_bytes"` TransmitPackets uint64 `json:"transmit_packets"` TransmitErrs uint64 `json:"transmit_errs"` TransmitDrop uint64 `json:"transmit_drop"` TransmitFifo uint64 `json:"transmit_fifo"` TransmitColls uint64 `json:"transmit_colls"` TransmitCarrier uint64 `json:"transmit_carrier"` TransmitCompressed uint64 `json:"transmit_compressed"` }
type Numa ¶
type Numa struct { ID int `json:"id"` Path string `json:"path"` CPUList CPUList `json:"cpu_list"` MemFree uint64 `json:"mem_free"` MemUsed uint64 `json:"mem_used"` MemTotal uint64 `json:"mem_total"` MemShmem uint64 `json:"mem_shmem"` MemAvailable uint64 `json:"mem_available"` MemFilePages uint64 `json:"mem_file_pages"` MemInactiveFile uint64 `json:"mem_inactive_file"` MemMaxBandwidthMB float64 `json:"mem_mx_bandwidth_mb"` MemReadBandwidthMB float64 `json:"mem_read_bandwidth_mb"` MemReadLatency float64 `json:"mem_read_latency"` MemTheoryMaxBandwidthMB float64 `json:"mem_theory_mx_bandwidth_mb"` MemWriteBandwidthMB float64 `json:"mem_write_bandwidth_mb"` MemWriteLatency float64 `json:"mem_write_latency"` AMDL3MissLatencyMax float64 `json:"amd_l3_miss_latency_max"` }
type NumaStatsV1 ¶
type NumaStatsV1 struct { NumaName string `json:"numa_name"` Total uint64 `json:"total"` File uint64 `json:"file"` Anon uint64 `json:"anon"` Unevictable uint64 `json:"unevictable"` HierarchicalTotal uint64 `json:"hierarchical_total"` HierarchicalFile uint64 `json:"hierarchical_file"` HierarchicalAnon uint64 `json:"hierarchical_anon"` HierarchicalUnevictable uint64 `json:"hierarchical_unevictable"` }
type NumaStatsV2 ¶
type NumaStatsV2 struct { Anon uint64 `json:"anon"` File uint64 `json:"file"` KernelStack uint64 `json:"kernel_stack"` Shmem uint64 `json:"shmem"` FileMapped uint64 `json:"file_mapped"` FileDirty uint64 `json:"file_dirty"` FileWriteback uint64 `json:"file_writeback"` AnonThp uint64 `json:"anon_thp"` InactiveAnon uint64 `json:"inactive_anon"` ActiveAnon uint64 `json:"active_anon"` InactiveFile uint64 `json:"inactive_file"` ActiveFile uint64 `json:"active_file"` Unevictable uint64 `json:"unevictable"` SlabReclaimable uint64 `json:"slab_reclaimable"` SlabUnreclaimable uint64 `json:"slab_unreclaimable"` WorkingsetRefault uint64 `json:"workingset_refault"` WorkingsetActivate uint64 `json:"workingset_activate"` WorkingsetNodereclaim uint64 `json:"workingset_nodereclaim"` }
type SubSystemGroupsV1 ¶
type SubSystemGroupsV1 struct { NetCls NetClsCg `json:"NetCls"` Blkio BlkioCgV1 `json:"Blkio"` Cpuacct CpuacctCgV1 `json:"Cpuacct"` Cpuset CpusetCgV1 `json:"Cpuset"` Memory MemoryCgV1 `json:"Memory"` }
type SubSystemGroupsV2 ¶
type SubSystemGroupsV2 struct { NetCls NetClsCg `json:"NetCls"` Blkio BlkioCgV2 `json:"Blkio"` Cpuacct CpuacctCgV2 `json:"Cpuacct"` Cpuset CpusetCgV2 `json:"Cpuset"` Memory MemoryCgV2 `json:"Memory"` }
type SumLatencyV2 ¶
type System ¶
type System struct { MemTotal uint64 `json:"mem_total"` MemFree uint64 `json:"mem_free"` MemUsed uint64 `json:"mem_used"` MemShm uint64 `json:"mem_shm"` MemAvailable uint64 `json:"mem_available"` MemBuffers uint64 `json:"mem_buffers"` MemPageCache uint64 `json:"mem_page_cache"` MemSlabReclaimable uint64 `json:"mem_slab_reclaimable"` MemDirtyPageCache uint64 `json:"mem_dirty_page_cache"` MemWriteBackPageCache uint64 `json:"mem_write_back_page_cache"` MemSwapTotal uint64 `json:"mem_swap_total"` MemSwapFree uint64 `json:"mem_swap_free"` MemUtil float64 `json:"mem_util"` VMWatermarkScaleFactor uint64 `json:"vm_watermark_scale_factor"` VmstatPgstealKswapd uint64 `json:"vmstat_pgsteal_kswapd"` }
type SystemComputeData ¶
type SystemDiskIoData ¶
type SystemMemoryData ¶
type SystemNetworkData ¶
type SystemNetworkData struct { NetworkCard []NetworkCard `json:"networkcard"` TCP TCP `json:"tcp"` UpdateTime int64 `json:"update_time"` }
type TCP ¶
type TCP struct { TCPDelayAcks uint64 `json:"tcp_delay_acks"` TCPListenOverflows uint64 `json:"tcp_listen_overflows"` TCPListenDrops uint64 `json:"tcp_listen_drops"` TCPAbortOnMemory uint64 `json:"tcp_abort_on_memory"` TCPReqQFullDrop uint64 `json:"tcp_req_q_full_drop"` TCPRetran float64 `json:"tcp_retran"` TCPRetransSegs uint64 `json:"tcp_retrans_segs"` TCPOldRetransSegs uint64 `json:"tcp_old_retrans_segs"` TCPOutSegs uint64 `json:"tcp_out_segs"` TCPOldOutSegs uint64 `json:"tcp_old_out_segs"` TCPCloseWait uint64 `json:"tcp_close_wait"` }
Click to show internal directories.
Click to hide internal directories.