-
Notifications
You must be signed in to change notification settings - Fork 4.5k
xds: add MetricsReporter for generic xds client #8274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
purnesh42H
merged 15 commits into
grpc:master
from
purnesh42H:generic-xds-client-metrics-recorder
May 8, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
aa67433
xds: add MetricsReporter for generic xds client
purnesh42H 613fc5c
Rewrite to simple metric reporter
purnesh42H b3ba545
copy xds/internal/xdsclient/metrics_test.go
purnesh42H 6d372fd
modify metrics_test
purnesh42H aac6180
dfawley review 2
purnesh42H 63937a9
dfawley review 3
purnesh42H e4388d1
dfawley review 2
purnesh42H 1cadfe4
remove ReceiveOrFail
purnesh42H 98a6dea
remove metric prefix
purnesh42H 9985442
improve comments and simplify testMetricsRecorder
purnesh42H 8867ff1
Remove unnecessary field comments
purnesh42H 1328857
use type for metric count
purnesh42H 982f274
remove use of data map for metric count
purnesh42H 6eadfdd
short timeout for unexpected metrics
purnesh42H 43f2eb8
change needed for grpctransport new changes
purnesh42H File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* | ||
* Copyright 2025 gRPC authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
// Package metrics defines all metrics that can be produced by an xDS client. | ||
// All calls to the MetricsRecorder by the xDS client will contain a struct | ||
// from this package passed by pointer. | ||
package metrics | ||
|
||
// ResourceUpdateValid is a metric to report a valid resource update from | ||
// the xDS management server for a given resource type. | ||
type ResourceUpdateValid struct { | ||
ServerURI string | ||
ResourceType string | ||
} | ||
|
||
// ResourceUpdateInvalid is a metric to report an invalid resource update | ||
// from the xDS management server for a given resource type. | ||
type ResourceUpdateInvalid struct { | ||
ServerURI string | ||
ResourceType string | ||
} | ||
|
||
// ServerFailure is a metric to report a server failure of the xDS | ||
// management server. | ||
type ServerFailure struct { | ||
ServerURI string | ||
} |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.