Commit 3db0f40
munin: add metadata usage warning and critical levels
Add warning and critical alert thresholds for metadata usage to help
prevent out-of-space situations caused by metadata exhaustion.
The thresholds are calculated based on:
- Currently allocated metadata space
- Available unallocated space that can be used for metadata
(rounded down to 256MB chunks, the typical metadata allocation size)
Warning is triggered when free metadata drops below 15% of allocated
metadata minus available unallocated space. Critical is triggered at 10%.
This addresses the issue where btrfs can run out of metadata space even
when data space is available, which can cause filesystem problems.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 4147ac9 commit 3db0f40
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
| |||
0 commit comments