| 1 | |
| 2 | template: bcache_cache_errors |
| 3 | on: disk.bcache_cache_read_races |
| 4 | class: Errors |
| 5 | type: System |
| 6 | component: Disk |
| 7 | lookup: sum -1m unaligned absolute |
| 8 | units: errors |
| 9 | every: 1m |
| 10 | warn: $this > 0 |
| 11 | delay: up 2m down 1h multiplier 1.5 max 2h |
| 12 | summary: Bcache cache read race errors |
| 13 | info: Number of times data was read from the cache, \ |
| 14 | the bucket was reused and invalidated in the last 10 minutes \ |
| 15 | (when this occurs the data is reread from the backing device) |
| 16 | to: silent |
| 17 | |
| 18 | template: bcache_cache_dirty |
| 19 | on: disk.bcache_cache_alloc |
| 20 | class: Utilization |
| 21 | type: System |
| 22 | component: Disk |
| 23 | calc: $dirty + $metadata + $undefined |
| 24 | units: % |
| 25 | every: 1m |
| 26 | warn: $this > 75 |
| 27 | delay: up 1m down 1h multiplier 1.5 max 2h |
| 28 | summary: Bcache cache used space |
| 29 | info: Percentage of cache space used for dirty data and metadata \ |
| 30 | (this usually means your SSD cache is too small) |
| 31 | to: silent |