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

Function sysFilePath

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

Source from the content-addressed store, hash-verified

34}
35
36func sysFilePath(name string) string {
37 return filepath.Join(*sysPath, name)
38}
39
40func rootfsFilePath(name string) string {
41 return filepath.Join(*rootfsPath, name)

Callers 9

getMemInfoNumaFunction · 0.85
UpdateMethod · 0.85
UpdateMethod · 0.85
updateThermalThrottleMethod · 0.85
UpdateMethod · 0.85
UpdateMethod · 0.85
UpdateMethod · 0.85
TestDefaultSysPathFunction · 0.85
TestCustomSysPathFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestDefaultSysPathFunction · 0.68
TestCustomSysPathFunction · 0.68