{"repo":"prometheus/procfs","free":true,"listed":false,"github":"https://github.com/prometheus/procfs","clone":"git clone https://github.com/prometheus/procfs.git","description":"procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.","language":"Go","stars":878,"topics":["procfs","pseudo-filesystem-proc","process-metrics","kernel","go","process","prometheus"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"procfs This package provides functions to retrieve system, kernel, and process metrics from the pseudo-filesystems /proc and /sys. WARNING : This package is a work in progress. Its API may still break in backwards-incompatible ways without warnings. Use it at your own risk. Usage The procfs library is organized by packages based on whether the gathered data is coming from /proc, /sys, or both. Each package contains an FS type which represents the path to either /proc, /sys, or both. For example, cpu statistics are gathered from /proc/stat and are available via the root procfs package. First, the proc filesystem mount point is initialized, and then the stat information is read. Some sub-packages such as blockdevice , require access to both the proc and sys filesystems. Package Organization The packages in this project are organized according to (1) whether the data comes from the /proc or /sys filesystem and (2) the type of information being retrieved. For example, most process information can be gathered from the functions in the root procfs package. Information about block devices such as disk drives is available in the blockdevices sub-package. Building and Testing The procfs library is intended to be built as part of another application, so there are no distributable binaries. However, most of the API includes unit tests which can be run with make test . Updating Test Fixtures The procfs library includes a set of test fixtures which include many example files from the /pro","default_branch":null,"files":null,"tree":[],"storefront":"/r/prometheus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prometheus/procfs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}