celeborn/common
TheodoreLx 4656bcb98a [CELEBORN-2071] Fix the issue where some gauge metrics were not registered to the metricRegistry
### What changes were proposed in this pull request?

add code to register gauge to metricRegistry in addGauge method

### Why are the changes needed?

Because one implementation of addGauge does not register the gauge to the metricRegistry, some Sink implementation classes cannot export these gauge metrics. For example, you cannot see JVMCPUTime in the metric file printed by CsvSink, because CsvSink only prints metrics from the registry variable in MetricsSystem.
### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

cluster test

Closes #3369 from TheodoreLx/fix-gauge-missing.

Lead-authored-by: TheodoreLx <1548069580@qq.com>
Co-authored-by: TheodoreLx <1548069580@qq.com >
Signed-off-by: SteNicholas <programgeek@163.com>
2025-07-24 16:15:21 +08:00
..
benchmarks
src [CELEBORN-2071] Fix the issue where some gauge metrics were not registered to the metricRegistry 2025-07-24 16:15:21 +08:00
pom.xml [CELEBORN-1530] support MPU for S3 2024-11-22 15:03:53 +08:00