prometheus / procfs

procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Apache License 2.0
756 stars 311 forks source link

net class: split out attribute parser and export it #511

Closed dcbw closed 1 year ago

dcbw commented 1 year ago

Can be used by other projects (eg node_exporter) to read a single sysfs file rather than all of them at once, which can cause lock contention in the kernel as many sysfs net files grab the RTNL lock.

Immediate consumer: https://github.com/prometheus/node_exporter/pull/2669

dcbw commented 1 year ago

@discordianfish is this what you were thinking of?