cooperlees / btrfs_exporter

Export useful btrfs filesystem counters to prometheus.
MIT License
0 stars 1 forks source link

Replace calling btrfs CLI with API call #2

Open cooperlees opened 2 years ago

cooperlees commented 2 years ago

Lets see if we can read /proc or if there is an API to get these statistics ...

(I just am learning rust so went the easiest way possible to get this working)

cooperlees commented 2 years ago

Seems the stats exist in /sys. For example:

Could use the label maybe to find the file system UUID.