prometheus / procfs

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

feat: Add `/sys/fs/btrfs/<FSID>/commit_stats` statistics #580

Closed dongjiang1989 closed 4 months ago

dongjiang1989 commented 8 months ago

Add /sys/fs//btrfs/<FSID>/commit_stats statistics.

ref: https://github.com/prometheus/node_exporter/issues/2734

like: https://elixir.bootlin.com/linux/latest/source/fs/btrfs/sysfs.c#L1033-L1047

dongjiang1989 commented 6 months ago

@SuperQ When you have time, please take a look.