diff options
Diffstat (limited to 'vendor/github.com/prometheus/procfs/bcache/bcache.go')
-rw-r--r-- | vendor/github.com/prometheus/procfs/bcache/bcache.go | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/vendor/github.com/prometheus/procfs/bcache/bcache.go b/vendor/github.com/prometheus/procfs/bcache/bcache.go index df724ed..1176a55 100644 --- a/vendor/github.com/prometheus/procfs/bcache/bcache.go +++ b/vendor/github.com/prometheus/procfs/bcache/bcache.go | |||
@@ -43,10 +43,11 @@ type BcacheStats struct { // nolint:golint | |||
43 | 43 | ||
44 | // BdevStats contains statistics for one backing device. | 44 | // BdevStats contains statistics for one backing device. |
45 | type BdevStats struct { | 45 | type BdevStats struct { |
46 | Name string | 46 | Name string |
47 | DirtyData uint64 | 47 | DirtyData uint64 |
48 | FiveMin PeriodStats | 48 | FiveMin PeriodStats |
49 | Total PeriodStats | 49 | Total PeriodStats |
50 | WritebackRateDebug WritebackRateDebugStats | ||
50 | } | 51 | } |
51 | 52 | ||
52 | // CacheStats contains statistics for one cache device. | 53 | // CacheStats contains statistics for one cache device. |
@@ -82,3 +83,14 @@ type PeriodStats struct { | |||
82 | CacheMisses uint64 | 83 | CacheMisses uint64 |
83 | CacheReadaheads uint64 | 84 | CacheReadaheads uint64 |
84 | } | 85 | } |
86 | |||
87 | // WritebackRateDebugStats contains bcache writeback statistics. | ||
88 | type WritebackRateDebugStats struct { | ||
89 | Rate uint64 | ||
90 | Dirty uint64 | ||
91 | Target uint64 | ||
92 | Proportional int64 | ||
93 | Integral int64 | ||
94 | Change int64 | ||
95 | NextIO int64 | ||
96 | } | ||