Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/procfs
/ functions
Functions
751 in github.com/prometheus/procfs
⨍
Functions
751
◇
Types & classes
267
↓ 1 callers
Method
GetProcMounts
GetProcMounts retrieves mountinfo information from a processes' `/proc/<pid>/mountinfo`.
mountinfo.go:201
↓ 1 callers
Method
GetRBDMatch
GetRBDMatch is getting the actual info to build up the RBD data and match with the enable target.
iscsi/get.go:179
↓ 1 callers
Method
GetRDMCPPath
GetRDMCPPath is getting the actual info to build up RDMCP data.
iscsi/get.go:222
↓ 1 callers
Function
GetStats
GetStats collects all Btrfs statistics from sysfs.
btrfs/get.go:81
↓ 1 callers
Function
GetStats
GetStats collects from sysfs files data tied to one bcache ID.
bcache/get.go:376
↓ 1 callers
Function
GetStats
GetStats collects all Bcachefs statistics from sysfs.
bcachefs/get.go:79
↓ 1 callers
Function
GetStats
GetStats is the main iscsi status information func for building the path and prepare info for enable iscsi.
iscsi/get.go:30
↓ 1 callers
Method
IO
IO creates a new ProcIO instance from a given Proc instance.
proc_io.go:43
↓ 1 callers
Method
IPVSBackendStatus
IPVSBackendStatus reads and returns the status of all (virtual,real) server pairs from the specified `proc` filesystem.
ipvs.go:126
↓ 1 callers
Method
IPVSStats
IPVSStats reads the IPVS statistics from the specified `proc` filesystem.
ipvs.go:68
↓ 1 callers
Method
ISCSIStats
ISCSIStats getting iscsi runtime information.
iscsi/iscsi.go:72
↓ 1 callers
Method
InfiniBandClass
InfiniBandClass returns info for all InfiniBand devices read from sys/class/infiniband.
sysfs/class_infiniband.go:141
↓ 1 callers
Method
InotifyWatchLen
InotifyWatchLen returns the total number of inotify watches.
proc_fdinfo.go:132
↓ 1 callers
Method
Interrupts
Interrupts creates a new instance from a given Proc instance.
proc_interrupts.go:44
↓ 1 callers
Method
IsolatedCPUs
()
sysfs/system_cpu.go:403
↓ 1 callers
Method
KernelHung
KernelHung returns values from /proc/sys/kernel/hung_task_detect_count.
kernel_hung.go:32
↓ 1 callers
Method
KernelRandom
KernelRandom returns values from /proc/sys/kernel/random.
kernel_random.go:41
↓ 1 callers
Method
LoadAvg
LoadAvg returns loadavg from /proc.
loadavg.go:32
↓ 1 callers
Method
MDStat
MDStat parses an mdstat-file (/proc/mdstat) and returns a slice of structs containing the relevant info. More information available here: https://rai
mdstat.go:89
↓ 1 callers
Method
MEIClass
MEIClass returns Management Engine Interface (MEI) information read from /sys/class/mei/.
sysfs/class_mei.go:43
↓ 1 callers
Method
Mdraids
Mdraids gathers information and statistics about mdraid devices present. Based on upstream kernel documentation https://docs.kernel.org/admin-guide/md
sysfs/mdraid.go:54
↓ 1 callers
Method
Meminfo
Meminfo returns an information about current kernel/system memory statistics. See https://www.kernel.org/doc/Documentation/filesystems/proc.txt
meminfo.go:212
↓ 1 callers
Method
MountStats
MountStats retrieves statistics and configuration for mount points in a process's namespace.
proc.go:269
↓ 1 callers
Method
Namespaces
Namespaces reads from /proc/<pid>/ns/* to get the namespaces of which the process is a member.
proc_ns.go:34
↓ 1 callers
Method
NetClass
NetClass returns info for all net interfaces (iface) read from /sys/class/net/<iface>.
sysfs/net_class.go:100
↓ 1 callers
Method
NetProtocols
NetProtocols reads stats from /proc/net/protocols and returns a map of PortocolStatLine entries. As of this writing no official Linux Documentation ex
net_protocols.go:73
↓ 1 callers
Method
NetSockstat
NetSockstat retrieves IPv4 socket statistics.
net_sockstat.go:48
↓ 1 callers
Method
NetSockstat6
NetSockstat6 retrieves IPv6 socket statistics. If IPv6 is disabled on this kernel, the returned error can be checked with os.IsNotExist.
net_sockstat.go:56
↓ 1 callers
Method
NetStat
NetStat retrieves stats from `/proc/net/stat/`.
netstat.go:31
↓ 1 callers
Method
NetUNIX
NetUNIX returns data read from /proc/net/unix.
net_unix.go:72
↓ 1 callers
Method
Netstat
()
proc_netstat.go:172
↓ 1 callers
Function
NewFS
NewFS returns a new FS mounted under the given mountPoint. It will error if the mount point can't be read.
nfs/nfs.go:295
↓ 1 callers
Function
NewFS
NewFS returns a new configfs mounted under the given mount point. It will error and return empty FS if the mount point can't be read. For the ease of
iscsi/iscsi.go:48
↓ 1 callers
Function
NewFS
NewFS returns a new XFS handle using the given proc and sys mountPoints. It will error if either of the mounts point can't be read.
xfs/xfs.go:496
↓ 1 callers
Function
NewFS
NewFS returns a new XFS handle using the given proc and sys mountPoints. It will error if either of the mounts point can't be read.
ext4/ext4.go:55
↓ 1 callers
Method
Number
Number returns the ID number of the given CPU.
sysfs/system_cpu.go:34
↓ 1 callers
Method
ParseAVCHashStats
ParseAVCHashStats returns the SELinux access vector cache hashtable statistics, or error on failure.
selinuxfs/avc_hash_stats.go:40
↓ 1 callers
Method
ParseAVCStats
ParseAVCStats returns the total SELinux access vector cache statistics, or error on failure.
selinuxfs/avc_cache_stats.go:44
↓ 1 callers
Function
ParseHexUint64s
Parses a uint64 from given hex in string.
internal/util/parse.go:69
↓ 1 callers
Function
ParseNetClassAttribute
ParseNetClassAttribute parses a given file in /sys/class/net/<iface> and sets the value in a given NetClassIface object if the value was readable. It
sysfs/net_class.go:146
↓ 1 callers
Function
ParsePInt64s
ParsePInt64s parses a slice of strings into a slice of int64 pointers.
internal/util/parse.go:54
↓ 1 callers
Function
ParseRoceNpEcnAttribute
Parses all of the attributes in for ROCE NP protocol.
sysfs/net_class_ecn.go:222
↓ 1 callers
Function
ParseRoceNpEcnInfo
ParseEcnIfaceInfo scans predefined files in /sys/class/net/<iface>/ecn/roce_np/ directory and gets their contents.
sysfs/net_class_ecn.go:198
↓ 1 callers
Function
ParseRoceRpEcnAttribute
Parses all of the attributes in for ROCE RP protocol.
sysfs/net_class_ecn.go:273
↓ 1 callers
Function
ParseRoceRpEcnInfo
ParseRoceRpEcnInfo scans predefined files in /sys/class/net/<iface>/ecn/roce_rp/ directory and gets their contents.
sysfs/net_class_ecn.go:249
↓ 1 callers
Function
ParseUint32s
ParseUint32s parses a slice of strings into a slice of uint32s.
internal/util/parse.go:24
↓ 1 callers
Method
PciDevices
PciDevices returns info for all PCI devices read from sys/bus/pci/devices .
sysfs/pci_device.go:114
↓ 1 callers
Method
PowerSupplyClass
PowerSupplyClass returns info for all power supplies read from sys/class/power_supply.
sysfs/class_power_supply.go:108
↓ 1 callers
Method
ProcDiskstats
ProcDiskstats reads the diskstats file and returns an array of Diskstats (one per line/device).
blockdevice/stats.go:257
↓ 1 callers
Function
ReadHexFromFile
ReadHexFromFile reads a file and attempts to parse a uint64 from a hexadecimal format 0xXX.
internal/util/parse.go:116
↓ 1 callers
Function
ReadIntFromFile
ReadIntFromFile reads a file and attempts to parse a int64 from it.
internal/util/parse.go:93
↓ 1 callers
Function
ReadWriteOPS
ReadWriteOPS read and return the stat of read and write in megabytes, and total commands that send to the target.
iscsi/get.go:106
↓ 1 callers
Method
ResidentBytes
ResidentBytes returns the process of resident set size in bytes.
proc_statm.go:100
↓ 1 callers
Method
ResidentMemory
ResidentMemory returns the resident memory size in bytes.
proc_stat.go:219
↓ 1 callers
Method
RootDir
RootDir returns the absolute path to the process's root directory (as set by chroot).
proc.go:195
↓ 1 callers
Method
SASEndDeviceClass
SASEndDeviceClass parses devices in /sys/class/sas_end_device. This is a subset of sas_device, and excludes expanders.
sysfs/class_sas_device.go:81
↓ 1 callers
Method
SASExpanderClass
SASExpanderClass parses devices in /sys/class/sas_expander. This is a subset of sas_device, but only includes expanders.
sysfs/class_sas_device.go:87
↓ 1 callers
Method
SCSITapeClass
SCSITapeClass parses st[0-9]+ devices in /sys/class/scsi_tape.
sysfs/class_scsitape.go:50
↓ 1 callers
Method
SHRBytes
SHRBytes returns the process of share memory size in bytes.
proc_statm.go:105
↓ 1 callers
Method
SizeBytes
SizeBytes returns the process of total program size in bytes.
proc_statm.go:95
↓ 1 callers
Method
SlabInfo
SlabInfo reads data from `/proc/slabinfo`.
slab.go:141
↓ 1 callers
Method
Snmp
()
proc_snmp.go:136
↓ 1 callers
Method
Snmp6
()
proc_snmp6.go:141
↓ 1 callers
Method
Softirqs
()
softirqs.go:41
↓ 1 callers
Method
StartTime
StartTime returns the unix timestamp of the process in seconds.
proc_stat.go:224
↓ 1 callers
Method
Stats
Stats retrieves Btrfs filesystem runtime statistics for each mounted Btrfs filesystem.
btrfs/get.go:56
↓ 1 callers
Method
Stats
Stats is a wrapper around stats(). It returns full available statistics.
bcache/get.go:55
↓ 1 callers
Method
Stats
Stats retrieves Bcachefs filesystem runtime statistics for each mounted Bcachefs filesystem.
bcachefs/get.go:54
↓ 1 callers
Method
String
String returns the string representation of the power state.
sysfs/pci_device.go:42
↓ 1 callers
Method
Swaps
Swaps returns a slice of all configured swap devices on the system.
swaps.go:36
↓ 1 callers
Method
SysBlockDeviceQueueStats
SysBlockDeviceQueueStats returns stats for /sys/block/xxx/queue where xxx is a device name.
blockdevice/stats.go:361
↓ 1 callers
Method
SysBlockDeviceSize
SysBlockDeviceSize returns the size of the block device from /sys/block/<device>/size in bytes by multiplying the value by the Linux sector length of
blockdevice/stats.go:487
↓ 1 callers
Method
SysBlockDeviceUnderlyingDevices
(device string)
blockdevice/stats.go:472
↓ 1 callers
Function
SysReadIntFromFile
SysReadIntFromFile reads a file using SysReadFile and attempts to parse a int64 from it.
internal/util/sysreadfile.go:62
↓ 1 callers
Function
SysReadUintFromFile
SysReadUintFromFile reads a file using SysReadFile and attempts to parse a uint64 from it.
internal/util/sysreadfile.go:53
↓ 1 callers
Method
SysStats
SysStats retrieves XFS filesystem runtime statistics for each mounted XFS filesystem. Only available on kernel 4.4+. On older kernels, an empty slic
xfs/xfs.go:529
↓ 1 callers
Method
SystemCpufreq
SystemCpufreq returns CPU frequency metrics for all CPUs.
sysfs/system_cpu.go:205
↓ 1 callers
Method
TextBytes
TextBytes returns the process of text (code) size in bytes.
proc_statm.go:110
↓ 1 callers
Method
TotalCtxtSwitches
TotalCtxtSwitches returns the total context switch.
proc_status.go:242
↓ 1 callers
Method
VM
VM reads the VM statistics from the specified `proc` filesystem.
vm.go:81
↓ 1 callers
Method
VMStatNUMA
()
sysfs/vmstat_numa.go:93
↓ 1 callers
Method
VirtualMemory
VirtualMemory returns the virtual memory size in bytes.
proc_stat.go:214
↓ 1 callers
Method
WatchdogClass
WatchdogClass returns info for all watchdog devices read from /sys/class/watchdog.
sysfs/class_watchdog.go:52
↓ 1 callers
Method
Wchan
Wchan returns the wchan (wait channel) of a process.
proc.go:144
↓ 1 callers
Method
Wireless
Wireless returns kernel wireless statistics.
net_wireless.go:63
↓ 1 callers
Method
Zoneinfo
Zoneinfo parses an zoneinfo-file (/proc/zoneinfo) and returns a slice of structs containing the relevant info. More information available here: https
zoneinfo.go:74
↓ 1 callers
Method
addValue
(k string, vUintBytes uint64)
proc_smaps.go:140
↓ 1 callers
Function
attributeOperationStats
AttributeOperationStats builds an AttributeOperationStats from a slice of uint32s.
xfs/parse.go:347
↓ 1 callers
Function
blockMappingStats
BlockMappingStat builds a BlockMappingStats from a slice of uint32s.
xfs/parse.go:227
↓ 1 callers
Method
blockSASDeviceBlockDevices
Identify block devices that map to a specific SAS Device This info comes from (for example) sys/class/sas_device/end_device-11:2/device/target11:0:0/1
sysfs/class_sas_device.go:136
↓ 1 callers
Function
btreeAllocBlocks2Stats
btreeAllocBlocks2Stats handles abtb2 stats.
xfs/parse.go:473
↓ 1 callers
Function
btreeAllocContig2Stats
btreeAllocContig2Stats handles abtc2 stats.
xfs/parse.go:498
↓ 1 callers
Function
btreeBlockMap2Stats
btreeBlockMap2Stats handles bmbt2 stats.
xfs/parse.go:523
↓ 1 callers
Function
btreeFreeInode2Stats
btreeFreeInode2Stats handles fibt2 stats.
xfs/parse.go:573
↓ 1 callers
Function
btreeInode2Stats
btreeInode2Stats handles ibt2 stats.
xfs/parse.go:548
↓ 1 callers
Function
btreeRcbagStats
btreeRcbagStats handles rcbagbt stats.
xfs/parse.go:673
↓ 1 callers
Function
btreeRefCountStats
btreeRefCountStats handles refcntbt stats.
xfs/parse.go:623
↓ 1 callers
Function
btreeReverseMapMemStats
btreeReverseMapMemStats handles rmapbt_mem stats.
xfs/parse.go:648
↓ 1 callers
Function
btreeReverseMapStats
btreeReverseMapStats handles rmapbt stats.
xfs/parse.go:598
↓ 1 callers
Function
btreeRtRefCountStats
btreeRtRefCountStats handles rtrefcntbt stats.
xfs/parse.go:748
← previous
next →
201–300 of 751, ranked by callers