MCPcopy
hub / github.com/prometheus/node_exporter / procFilePath

Function procFilePath

collector/paths.go:32–34  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

30)
31
32func procFilePath(name string) string {
33 return filepath.Join(*procPath, name)
34}
35
36func sysFilePath(name string) string {
37 return filepath.Join(*sysPath, name)

Callers 15

UpdateMethod · 0.85
UpdateMethod · 0.85
UpdateMethod · 0.85
UpdateMethod · 0.85
UpdateMethod · 0.85
getInterruptsFunction · 0.85
TestReadProcessStatusFunction · 0.85
openProcFileMethod · 0.85
updatePoolStatsMethod · 0.85
getLoadFunction · 0.85
parseLoadFunction · 0.85
UpdateMethod · 0.85

Calls

no outgoing calls

Tested by 3

TestReadProcessStatusFunction · 0.68
TestDefaultProcPathFunction · 0.68
TestCustomProcPathFunction · 0.68