[CELEBORN-2357] Add Metrics Prefix#3732
Conversation
Enable users the option to prefix their metrics with something unique that will allow them to easily find any celeborn related metircs in observability platforms.
SummaryReplaces the hardcoded VerdictSolid, mergeable with one substantive concern. What's good
Inline comments1. The prefix is not sanitized (substantive)File: s"${metricsPrefix}_${key.replaceAll("[^a-zA-Z0-9]", "_")}_"The metric Recommend one of:
Option 1 is the most user-forgiving and matches the existing key-handling intent. 2. Empty prefix yields a leading underscore (minor)File: An empty prefix ( 3. Document the prefix constraint (minor)File: val METRICS_PREFIX: ConfigEntry[String] =
buildConf("celeborn.metrics.prefix")
.categories("metrics")
.doc("Prefix metrics with this value.")
.version("0.7.0")
.stringConf
.createWithDefault("metrics")The doc string 4. Add a test for a "dirty" prefix (minor)File: The new test only covers a clean prefix ( – Reviewed with Claude Code |
|
@s0nskar none of the comments Claude gave were good. no need to do them. purpose of this metric is to let users apply whatever header they want for their metrics, or use the default name provided/that was there originally. @SteNicholas could you please take a look when you get the chance. |
What changes were proposed in this pull request?
Enable users the option to prefix their metrics with something unique that will allow them to easily find any celeborn related metircs in observability platforms.
Why are the changes needed?
Users will be able to easily identify celeborn metrics on observability tools with this prefix.
Does this PR resolve a correctness bug?
Does this PR introduce any user-facing change?
How was this patch tested?
CI/CD