Skip to content

Commit

Permalink
Restore rocksdb histogram names to cope with 2 simultaneous dbs using…
Browse files Browse the repository at this point in the history
… the same metrics system

Signed-off-by: Gabriel Fukushima <[email protected]>
  • Loading branch information
gfukushima committed Jan 9, 2025
1 parent 019653d commit 65541d9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ public void registerMetrics(final RocksDB database) {
for (final HistogramType histogram : HISTOGRAMS) {
metricsSystem.createSummary(
category,
histogram.name().toLowerCase(Locale.ROOT),
category.getApplicationPrefix().orElse("")
+ category.getName()
+ "_"
+ histogram.name().toLowerCase(Locale.ROOT),
"RocksDB histogram for " + histogram.name(),
() -> provideExternalSummary(stats, histogram));
}
Expand Down

0 comments on commit 65541d9

Please sign in to comment.