Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Btrfs commit stats #2734

Open
rodrigol-chan opened this issue Jul 3, 2023 · 2 comments · May be fixed by #3010
Open

Feature request: Btrfs commit stats #2734

rodrigol-chan opened this issue Jul 3, 2023 · 2 comments · May be fixed by #3010

Comments

@rodrigol-chan
Copy link

Since Linux 6.0, we can get commit statistics from /sys/fs/btrfs/FS_ID/commit_stats, e.g.

$ cat /sys/fs/btrfs/01234567-89ab-cdef-0123-456789abcdef/commit_stats
commits 258051
last_commit_ms 1000
max_commit_ms 51462
total_commit_ms 47836090
@dongjiang1989
Copy link
Contributor

Need to add parsing to proc first, and then add metrics to node exporter.

Procfs PR: prometheus/procfs#580

@maartenberg maartenberg linked a pull request May 3, 2024 that will close this issue
@maartenberg
Copy link

I've opened a PR to expose the commit statistics as metrics: #3010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants