You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: metrics/pebble_metrics.go
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -62,11 +62,11 @@ var (
62
62
" compaction. Such files are compacted in a rewrite compaction"+
63
63
" when no other compactions are picked.", stats.UnitDimensionless)
64
64
65
-
// l0NumFiles is the total number of files in L0. The number of L0 files should not be in the high thousands.
66
-
// High values indicate heavy write load that is causing accumulation of files in level 0. These files are not
65
+
// l0TablesCount is the total count of sstables in L0. The number of L0 sstables should not be in the high thousands.
66
+
// High values indicate heavy write load that is causing accumulation of sstables in level 0. These sstables are not
67
67
// being compacted quickly enough to lower levels, resulting in a misshapen LSM.
68
-
l0NumFiles=stats.Int64("ipni/pebble/compact_l0_num_files", "The total number of files in L0. The number of L0 files should not be in the high thousands."+
69
-
" High values indicate heavy write load that is causing accumulation of files in level 0. These files are not"+
68
+
l0TablesCount=stats.Int64("ipni/pebble/compact_l0_tables_count", "The total count of sstables in L0. The number of L0 sstables should not be in the high thousands."+
69
+
" High values indicate heavy write load that is causing accumulation of sstables in level 0. These sstables are not"+
70
70
" being compacted quickly enough to lower levels, resulting in a misshapen LSM.", stats.UnitDimensionless)
71
71
)
72
72
@@ -120,8 +120,8 @@ var (
120
120
Measure: compactMarkedFiles,
121
121
Aggregation: view.LastValue(),
122
122
}
123
-
l0NumFilesView=&view.View{
124
-
Measure: l0NumFiles,
123
+
l0TablesCountView=&view.View{
124
+
Measure: l0TablesCount,
125
125
Aggregation: view.LastValue(),
126
126
}
127
127
)
@@ -139,7 +139,7 @@ var PebbleViews = []*view.View{
139
139
compactInProgressBytesView,
140
140
compactNumInProgressView,
141
141
compactMarkedFilesView,
142
-
l0NumFilesView,
142
+
l0TablesCountView,
143
143
}
144
144
145
145
// ObservePebbleMetrics is used to periodically report metrics from the pebble database
0 commit comments