mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
New deps (#715)
This commit is contained in:
committed by
Reed Allman
parent
5fc01d6974
commit
a70c038760
12
vendor/github.com/prometheus/procfs/fs.go
generated
vendored
12
vendor/github.com/prometheus/procfs/fs.go
generated
vendored
@@ -5,6 +5,7 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/prometheus/procfs/nfsd"
|
||||
"github.com/prometheus/procfs/xfs"
|
||||
)
|
||||
|
||||
@@ -44,3 +45,14 @@ func (fs FS) XFSStats() (*xfs.Stats, error) {
|
||||
|
||||
return xfs.ParseStats(f)
|
||||
}
|
||||
|
||||
// NFSdRPCStats retrieves NFS daemon RPC statistics.
|
||||
func (fs FS) NFSdRPCStats() (*nfsd.RPCStats, error) {
|
||||
f, err := os.Open(fs.Path("net/rpc/nfsd"))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
return nfsd.ParseRPCStats(f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user