1
0

[HUDI-2974] Make the prefix for metrics name configurable (#4274)

Co-authored-by: Rajesh Mahindra <rmahindra@Rajeshs-MacBook-Pro.local>
This commit is contained in:
rmahindra123
2021-12-10 19:42:20 -08:00
committed by GitHub
parent c48a2a125a
commit 9797fdfbb2
5 changed files with 21 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ public class HoodieDeltaStreamerMetrics implements Serializable {
}
String getMetricsName(String action, String metric) {
return config == null ? null : String.format("%s.%s.%s", tableName, action, metric);
return config == null ? null : String.format("%s.%s.%s", config.getMetricReporterMetricsNamePrefix(), action, metric);
}
public void updateDeltaStreamerMetrics(long durationInNs) {