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
Function
parseReadAheadCache
(v []uint64)
nfs/parse.go:68
↓ 1 callers
Function
parseReplyCache
(v []uint64)
nfs/parse.go:20
↓ 1 callers
Method
parseSASDevice
Parse a single sas_device. This uses /sys/class/sas_device, as it's a superset of the other two directories so there's no reason to plumb the path th
sysfs/class_sas_device.go:94
↓ 1 callers
Method
parseSASHost
Parse a single sas_host.
sysfs/class_sas_host.go:72
↓ 1 callers
Method
parseSASPhy
Parse a single sas_phy.
sysfs/class_sas_phy.go:77
↓ 1 callers
Method
parseSASPort
Parse a single sas_port.
sysfs/class_sas_port.go:75
↓ 1 callers
Method
parseSCSITape
Parse a single scsi_tape.
sysfs/class_scsitape.go:79
↓ 1 callers
Function
parseSCSITapeStatistics
parseSCSITapeStatistics parses metrics from a single tape.
sysfs/class_scsitape.go:93
↓ 1 callers
Function
parseSNMP6Stats
parseSnmp6 parses the metrics from proc/<pid>/net/snmp6 file and returns a map contains those metrics.
proc_snmp6.go:161
↓ 1 callers
Function
parseServerRPC
(v []uint64)
nfs/parse.go:93
↓ 1 callers
Function
parseServerV4Stats
(v []uint64)
nfs/parse.go:257
↓ 1 callers
Function
parseSlabInfo21
parseSlabInfo21 is used to parse a slabinfo 2.1 file.
slab.go:123
↓ 1 callers
Function
parseSnmp
parseSnmp parses the metrics from proc/<pid>/net/snmp file and returns a map contains those metrics (e.g. {"Ip": {"Forwarding": 2}}).
proc_snmp.go:149
↓ 1 callers
Function
parseSockstatKVs
parseSockstatKVs parses a string slice into a map of key/value pairs.
net_sockstat.go:119
↓ 1 callers
Function
parseSockstatProtocol
parseSockstatProtocol parses a NetSockstatProtocol from the input kvs map.
net_sockstat.go:139
↓ 1 callers
Function
parseSoftIRQStat
Parse a softirq line.
stat.go:127
↓ 1 callers
Function
parseSoftirqs
(r io.Reader)
softirqs.go:53
↓ 1 callers
Function
parseSoftnet
(r io.Reader)
net_softnet.go:73
↓ 1 callers
Function
parseStat
parseStat parses the metrics from /proc/[pid]/stat.
stat.go:182
↓ 1 callers
Method
parseState
(s string)
net_unix.go:211
↓ 1 callers
Function
parseStatm
parseStatm return /proc/[pid]/statm data to uint64 slice.
proc_statm.go:81
↓ 1 callers
Function
parseSwaps
(info []byte)
swaps.go:44
↓ 1 callers
Function
parseSysBlockDeviceStat
(data []byte)
blockdevice/stats.go:332
↓ 1 callers
Function
parseThreads
(v []uint64)
nfs/parse.go:57
↓ 1 callers
Method
parseType
(s string)
net_unix.go:193
↓ 1 callers
Method
parseUsers
(s string)
net_unix.go:189
↓ 1 callers
Function
parseV21SlabEntry
parseV21SlabEntry is used to parse a line from /proc/slabinfo version 2.1.
slab.go:66
↓ 1 callers
Function
parseV4Ops
(v []uint64)
nfs/parse.go:269
↓ 1 callers
Function
parseVMStatNUMA
(r []byte)
sysfs/vmstat_numa.go:122
↓ 1 callers
Function
parseVulnerability
(name, rawContent string)
sysfs/vulnerability.go:83
↓ 1 callers
Method
parseWatchdog
(wdName string)
sysfs/class_watchdog.go:73
↓ 1 callers
Function
parseWireless
parseWireless parses the contents of /proc/net/wireless. * Inter-| sta-| Quality | Discarded packets | Missed | WE face | tus
net_wireless.go:84
↓ 1 callers
Function
parseZoneinfo
(zoneinfoData []byte)
zoneinfo.go:86
↓ 1 callers
Function
pushAilStats
pushAilStats handles push_ail stats.
xfs/parse.go:303
↓ 1 callers
Function
quotaManagerStats
(us []uint32)
xfs/parse.go:435
↓ 1 callers
Method
readCommitStats
readCommitStats returns the commit_stats information for commit stats metrics.
btrfs/get.go:258
↓ 1 callers
Function
readConntrackStat
Parses a slice of ConntrackStatEntries from the given filepath.
net_conntrackstat.go:50
↓ 1 callers
Function
readDevInfo
readDev reads the device name and type from the "device" symlink in the given directory.
sysfs/class_drm_amdgpu.go:55
↓ 1 callers
Method
readDeviceInfo
readDeviceInfo returns the information for all devices associated with this filesystem.
btrfs/get.go:211
↓ 1 callers
Method
readFile
readFile reads a file relative to the path of the reader. Non-existing files are ignored.
bcachefs/get.go:95
↓ 1 callers
Method
readFilesystemStats
readFilesystemStats reads Btrfs statistics for a filesystem.
btrfs/get.go:224
↓ 1 callers
Method
readFilesystemStats
()
bcachefs/get.go:122
↓ 1 callers
Method
readHumanBytes
(n string)
bcachefs/get.go:109
↓ 1 callers
Method
readLayout
readLayout reads the Btrfs layout statistics for an allocation layout.
btrfs/get.go:181
↓ 1 callers
Method
readLayouts
readLayouts reads all Btrfs layout statistics for the current path.
btrfs/get.go:163
↓ 1 callers
Function
readNetRoute
(path string)
net_route.go:52
↓ 1 callers
Function
readWriteStats
readWriteStats handles rw stats.
xfs/parse.go:335
↓ 1 callers
Function
shouldParseSlab
(line string)
slab.go:55
↓ 1 callers
Function
sysctlToPath
(sysctl string)
proc_sys.go:23
↓ 1 callers
Function
transactionStats
TransactionStats builds a TransactionStats from a slice of uint32s.
xfs/parse.go:258
↓ 1 callers
Function
vnodeStats
VnodeStats builds a VnodeStats from a slice of uint32s.
xfs/parse.go:374
↓ 1 callers
Function
xStratStats
xStratStats handles xstrat stats.
xfs/parse.go:323
↓ 1 callers
Function
zonedStats
zonedStats handles zoned stats.
xfs/parse.go:773
Function
AllProcs
AllProcs returns a list of all currently available processes under /proc.
proc.go:68
Function
AllThreads
Provide access to /proc/PID/task/TID files, for thread specific values. Since such files have the same structure as /proc/PID/ ones, the data structur
thread.go:29
Function
BenchmarkParseAddress
(b *testing.B)
proc_maps64_test.go:139
Function
BenchmarkParseDevice
(b *testing.B)
proc_maps64_test.go:158
Function
BenchmarkProcSMapsRollup
(b *testing.B)
proc_smaps_test.go:22
Method
CgroupSummarys
CgroupSummarys returns information about current /proc/cgroups.
proc_cgroups.go:92
Method
Cgroups
Cgroups reads from /proc/<pid>/cgroups and returns a []*Cgroup struct locating this PID in each process control hierarchy running on this system. On e
proc_cgroup.go:92
Method
ClientRPCStats
ClientRPCStats retrieves NFS client RPC statistics from proc/net/rpc/nfs.
nfs/nfs.go:308
Method
ConntrackStat
ConntrackStat retrieves netfilter's conntrack statistics, split by CPU cores.
net_conntrackstat.go:45
Method
GetByName
GetByName returns the SASHost with the provided name.
sysfs/class_sas_host.go:96
Method
GetByName
GetByName returns the SASPort with the provided name.
sysfs/class_sas_port.go:101
Method
GetByName
GetByName returns the SASDevice with the provided name.
sysfs/class_sas_device.go:181
Method
GetByPhy
GetByPhy finds the SASPort that contains the provided PHY name.
sysfs/class_sas_port.go:106
Method
GetByPhy
GetByPhy finds the SASDevice that contains the provided PHY name.
sysfs/class_sas_device.go:186
Method
GetByPort
GetByPort finds the SASDevice that contains the provided SAS Port name.
sysfs/class_sas_device.go:196
Function
GetMounts
GetMounts retrieves mountinfo information from `/proc/self/mountinfo`.
mountinfo.go:174
Function
GetProcMounts
GetProcMounts retrieves mountinfo information from a processes' `/proc/<pid>/mountinfo`.
mountinfo.go:183
Method
Len
()
proc_test.go:278
Method
Len
()
proc_fdinfo.go:127
Method
Len
()
proc.go:45
Method
Less
(i, j int)
proc_test.go:280
Method
Less
(i, j int)
proc_fdinfo.go:129
Method
Less
(i, j int)
proc.go:47
Method
MountInfo
MountInfo retrieves mount information for mount points in a process's namespace. It supplies information missing in `/proc/self/mounts` and fixes vari
proc.go:283
Method
NFNetLinkQueue
NFNetLinkQueue returns information about current state of netfilter queues.
nfnetlink_queue.go:50
Method
NetDev
NetDev returns kernel/system statistics read from /proc/[pid]/net/dev.
net_dev.go:56
Method
NetDevSNMP6
Returns kernel/system statistics read from interface files within the /proc/<PID>/net/dev_snmp6/ directory.
net_dev_snmp6.go:40
Method
NetRoute
()
net_route.go:48
Method
NetTCP
NetTCP returns the IPv4 kernel/networking statistics for TCP datagrams read from /proc/net/tcp. Deprecated: Use github.com/mdlayher/netlink#Conn (wit
net_tcp.go:30
Method
NetTCP6
NetTCP6 returns the IPv6 kernel/networking statistics for TCP datagrams read from /proc/net/tcp6. Deprecated: Use github.com/mdlayher/netlink#Conn (w
net_tcp.go:38
Method
NetTCP6Summary
NetTCP6Summary returns already computed statistics like the total queue lengths for TCP datagrams read from /proc/net/tcp6. Deprecated: Use github.co
net_tcp.go:54
Method
NetTCPSummary
NetTCPSummary returns already computed statistics like the total queue lengths for TCP datagrams read from /proc/net/tcp. Deprecated: Use github.com/
net_tcp.go:46
Method
NetUDP
NetUDP returns the IPv4 kernel/networking statistics for UDP datagrams read from /proc/net/udp.
net_udp.go:28
Method
NetUDP6
NetUDP6 returns the IPv6 kernel/networking statistics for UDP datagrams read from /proc/net/udp6.
net_udp.go:34
Method
NetUDP6Summary
NetUDP6Summary returns already computed statistics like the total queue lengths for UDP datagrams read from /proc/net/udp6.
net_udp.go:46
Method
NetUDPSummary
NetUDPSummary returns already computed statistics like the total queue lengths for UDP datagrams read from /proc/net/udp.
net_udp.go:40
Function
NewDefaultFS
NewDefaultFS returns a new proc FS mounted under the default proc mountPoint. It will error if the mount point directory can't be read or is a file.
fs.go:38
Function
NewDefaultFS
NewDefaultFS returns a new Bcache using the default sys fs mount point. It will error if the mount point can't be read.
btrfs/get.go:38
Function
NewDefaultFS
NewDefaultFS returns a new Bcache using the default sys fs mount point. It will error if the mount point can't be read.
bcache/get.go:36
Function
NewDefaultFS
NewDefaultFS returns a new Bcachefs using the default sys fs mount point. It will error if the mount point can't be read.
bcachefs/get.go:36
Function
NewDefaultFS
NewDefaultFS returns a new blockdevice fs using the default mountPoints for proc and sys. It will error if either of these mount points can't be read.
blockdevice/stats.go:231
Function
NewDefaultFS
NewDefaultFS returns a new FS mounted under the default mountPoint. It will error if the mount point can't be read.
sysfs/fs.go:33
Function
NewDefaultFS
NewDefaultFS returns a new FS mounted under the default mountPoint. It will error if the mount point can't be read.
nfs/nfs.go:289
Function
NewDefaultFS
NewDefaultFS returns a new XFS handle using the default proc and sys mountPoints. It will error if either of the mounts point can't be read.
xfs/xfs.go:490
Function
NewDefaultFS
NewDefaultFS returns a new FS mounted under the default mountPoint. It will error if the mount point can't be read.
selinuxfs/fs.go:33
Function
NewDefaultFS
NewDefaultFS returns a new blockdevice fs using the default mountPoints for proc and sys. It will error if either of these mount points can't be read.
ext4/ext4.go:49
Method
NewLimits
NewLimits returns the current soft limits of the process. Deprecated: Use p.Limits() instead.
proc_limits.go:84
← previous
next →
401–500 of 751, ranked by callers