Commit 2012f0b
authored
[metrics] Add partition count metrics for tables and cluster monitoring (#1662)
* [FLUSS-1571] Add partition count metric for cluster monitoring
- Add PARTITION_COUNT metric name constant
- Implement getTotalPartitionCount() in CoordinatorContext
- Add partition count metric registration and updates in CoordinatorEventManager
- Follow existing TABLE_COUNT metric implementation pattern
- Add basic tests for partition count functionality
This provides a simple way to monitor total partition count across the cluster,
helping users identify when too many partitions might cause cluster instability.
* [FLUSS-1571] [docs] Add partition count metrics documentation
- Add partitionCount metric documentation for cluster-level monitoring
- Document the new metric that tracks total number of partitions in the cluster
- This metric helps users monitor partition distribution and identify potential cluster instability issues
* [FLUSS-1571] [docs] Fix table rowspan for partition count metrics1 parent 65f7bb0 commit 2012f0b
File tree
4 files changed
+20
-2
lines changed- fluss-common/src/main/java/org/apache/fluss/metrics
- fluss-server/src/main/java/org/apache/fluss/server/coordinator
- event
- website/docs/maintenance/observability
4 files changed
+20
-2
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
660 | 664 | | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
147 | 151 | | |
148 | 152 | | |
149 | 153 | | |
| 154 | + | |
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| |||
268 | 273 | | |
269 | 274 | | |
270 | 275 | | |
| 276 | + | |
271 | 277 | | |
272 | 278 | | |
273 | 279 | | |
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
277 | 283 | | |
| 284 | + | |
278 | 285 | | |
279 | 286 | | |
280 | 287 | | |
281 | 288 | | |
282 | 289 | | |
| 290 | + | |
283 | 291 | | |
284 | 292 | | |
285 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
| 297 | + | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
| |||
0 commit comments