Add tablet compaction score metrics (#2427)

[Metric] Add tablet compaction score metrics

Backend:
    Add metric "tablet_max_compaction_score" to monitor the current max compaction
    score of tablets on this Backend. This metric will be updated each time
    the compaction thread picking tablets to compact.

Frontend:
    Add metric "tablet_max_compaction_score" for each Backend. These metrics will
    be updated when backends report tablet.
    And also add a calculated metric "max_tablet_compaction_core" to monitor the
    max compaction core of tablets on all Backends.
This commit is contained in:
Mingyu Chen
2019-12-12 17:46:59 +08:00
committed by ZHAO Chun
parent a5f52f80df
commit c39d35df4c
14 changed files with 97 additions and 12 deletions

View File

@ -75,7 +75,7 @@ public class BackendTest {
backend.updateOnce(bePort, httpPort, beRpcPort);
PowerMock.mockStatic(MetricRepo.class);
MetricRepo.generateTabletNumMetrics();
MetricRepo.generateBackendsTabletMetrics();
EasyMock.expectLastCall().anyTimes();
PowerMock.replay(MetricRepo.class);
}