Repository navigation
Normalize Nexus gRPC request metric tags - #3236
Open
pcbeingused333 wants to merge 2 commits into
Open
pcbeingused333 wants to merge 2 commits into
pcbeingused333 wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #3231, which added the same default for
update_name.Nexus response RPCs attach
nexus_serviceandnexus_operationto their request counters and latency metrics. Regular RPCs publish the same metric names without those labels, which can cause Prometheus to reject series with a different label set.Add both labels to the default metric tags with the value
none. Nexus response RPCs continue to use the service and operation names from their call scope. Other RPCs gain the two default labels. No server changes are required.The regression test checks that a Nexus response RPC and a regular RPC both report request counters and latency with identical label keys. It also checks that the Nexus values survive and the regular RPC uses the defaults.
With the default tags from main, the test fails because only the Nexus response has the two label keys. It passes with this change.
spotlessCheckalso passes.AI assistance was used to prepare this change.