### 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> |
||
|---|---|---|
| .. | ||
| benchmarks | ||
| src | ||
| pom.xml | ||