- addHistogram(templateContext, "sone.parsing.duration", "soneParsingDuration")
- addHistogram(templateContext, "sone.insert.duration", "soneInsertDuration")
+ metricsRegistry.histograms
+ .mapKeys { it.key to it.key.toI18n() }
+ .onEach { addHistogram(templateContext, it.key.first, it.key.second) }
+ .keys
+ .map(Pair<*, String>::second)
+ .let { templateContext["histogramKeys"] = it }