github.com/prometheus/procfs.FS.proc (field)
35 uses
github.com/prometheus/procfs (current package)
arp.go#L37: data, err := ioutil.ReadFile(fs.proc.Path("net/arp"))
arp.go#L39: return nil, fmt.Errorf("error reading arp %s: %s", fs.proc.Path("net/arp"), err)
buddyinfo.go#L36: file, err := os.Open(fs.proc.Path("buddyinfo"))
cpuinfo.go#L58: data, err := util.ReadFileNoStat(fs.proc.Path("cpuinfo"))
crypto.go#L55: data, err := ioutil.ReadFile(fs.proc.Path("crypto"))
crypto.go#L57: return nil, fmt.Errorf("error parsing crypto %s: %s", fs.proc.Path("crypto"), err)
crypto.go#L61: return nil, fmt.Errorf("error parsing crypto %s: %s", fs.proc.Path("crypto"), err)
fs.go#L23: proc fs.FS
ipvs.go#L70: data, err := util.ReadFileNoStat(fs.proc.Path("net/ip_vs_stats"))
ipvs.go#L128: file, err := os.Open(fs.proc.Path("net/ip_vs"))
mdstat.go#L53: data, err := ioutil.ReadFile(fs.proc.Path("mdstat"))
mdstat.go#L55: return nil, fmt.Errorf("error parsing mdstat %s: %s", fs.proc.Path("mdstat"), err)
mdstat.go#L59: return nil, fmt.Errorf("error parsing mdstat %s: %s", fs.proc.Path("mdstat"), err)
meminfo.go#L148: b, err := util.ReadFileNoStat(fs.proc.Path("meminfo"))
net_dev.go#L52: return newNetDev(fs.proc.Path("net/dev"))
net_sockstat.go#L50: return readSockstat(fs.proc.Path("net", "sockstat"))
net_sockstat.go#L58: return readSockstat(fs.proc.Path("net", "sockstat6"))
net_softnet.go#L40: data, err := ioutil.ReadFile(fs.proc.Path("net/softnet_stat"))
net_softnet.go#L42: return nil, fmt.Errorf("error reading softnet %s: %s", fs.proc.Path("net/softnet_stat"), err)
net_unix.go#L96: return NewNetUnixByPath(fs.proc.Path("net/unix"))
proc.go#L72: p, err := os.Readlink(fs.proc.Path("self"))
proc.go#L76: pid, err := strconv.Atoi(strings.Replace(p, string(fs.proc), "", -1))
proc.go#L92: if _, err := os.Stat(fs.proc.Path(strconv.Itoa(pid))); err != nil {
proc.go#L95: return Proc{PID: pid, fs: fs.proc}, nil
proc.go#L100: d, err := os.Open(fs.proc.Path())
proc.go#L117: p = append(p, Proc{PID: int(pid), fs: fs.proc})
proc_psi.go#L60: data, err := util.ReadFileNoStat(fs.proc.Path(fmt.Sprintf("%s/%s", "pressure", resource)))
proc_stat.go#L181: fs := FS{proc: s.proc}
schedstat.go#L61: file, err := os.Open(fs.proc.Path("schedstat"))
stat.go#L168: fileName := fs.proc.Path("stat")
vm.go#L81: path := fs.proc.Path("sys/vm")
xfrm.go#L100: file, err := os.Open(fs.proc.Path("net/xfrm_stat"))
zoneinfo.go#L75: data, err := ioutil.ReadFile(fs.proc.Path("zoneinfo"))
zoneinfo.go#L77: return nil, fmt.Errorf("error reading zoneinfo %s: %s", fs.proc.Path("zoneinfo"), err)
zoneinfo.go#L81: return nil, fmt.Errorf("error parsing zoneinfo %s: %s", fs.proc.Path("zoneinfo"), err)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |