Registry / observability / prometheus-procfs

prometheus-procfs

JSON →
library0.20.1gogounverified

Package procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.

go get github.com/prometheus/procfs
INSTALL
IMPORT
SIG · PROMETHEUS-PROCFS
P
prometheus-procfs
observabilitygov0.20.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

procfs
github.com/prometheus/procfs

Read system load average from procfs

package main import ( "fmt" "github.com/prometheus/procfs" ) func main() { fs, err := procfs.NewDefaultFS() if err != nil { panic(err) } load, err := fs.LoadAvg() if err != nil { panic(err) } fmt.Printf("Load average: %+v\n", load) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.20.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
2
Resources
prometheus-procfs — go get prometheus-procfs · libregistry