Preserve underscores in resource group metric tags - #6553
efegokdemir wants to merge 7 commits into
Conversation
Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
|
Removing the |
|
Updated the PR description to match the current implementation. Micrometer-compatible formatting is retained; monitor-side processing now resolves the formatted tag against configured resource-group names and preserves ambiguous/non-matching values. The focused MetricsUtilTest and reactor test command pass, and git diff --check passes. Please re-review the current HEAD when convenient. |
dlmarion
left a comment
There was a problem hiding this comment.
I don't think this behavior is correct. It's returning a resource group name that is not valid.
Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
|
Addressed the current-head feedback in |
Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
|
Updated eae6317 to follow the requested zero/ambiguous-match semantics: MetricsUtil now throws an informative IllegalStateException unless exactly one configured resource group matches. The monitor callers catch it, log the invalid tag, and skip that metric instead of retaining an invalid name. Added/updated focused resolution tests. Validation: |
Assisted-by: Codex (GPT-5) Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
|
Updated in Validation: |
Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
|
Simplified the resource-group resolution as requested. The formatting-to-configured-name lookup now stays local to the monitor path, removes the core utility API and labeled loop, skips invalid metric-table entries, and retains the Validation: |
|
The existing branch has been updated at with the requested unique/ambiguous/unknown resource-group handling and fallback. Focused tests, monitor compilation, formatting, and passed. Please re-review the current head. |
Summary
Fixes the monitor's resource-group lookup after Micrometer formats metric tag names.
Changes
Testing
Notes
The implementation follows the requested matching approach: it keeps canonical formatting and resolves back to a configured resource-group name only when the formatted value has one unique match.