-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
GCP CSM Observability Java client use XdsCredentials #11505
base: master
Are you sure you want to change the base?
Conversation
…ument and use XdsCredentials if passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems weird to do this in the observability example. Cloud Run is unrelated to csm observability.
if (args.length > 0) { | ||
if ("--help".equals(args[0])) { | ||
System.err.println("Usage: [name [target [prometheusPort]]]"); | ||
System.err.println("Usage: [--xds-creds [name [target [prometheusPort]]]]"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since xdscreds is separately optional, it should be [--xds-creds] [name [target...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
gcp CSM Observability examples are already in gRPC.io docker hub. I just tried avoiding creating and maintaining another set of docker images without exposing metrics on a Prometheus port. In the user guide we pull the example code from docker. |
Also the Proxyless service-mesh guide already uses the CSM Observability example as well: https://cloud.google.com/service-mesh/docs/gateway/proxyless-grpc-mesh |
To demonstrate using the CSM mesh client to talk to cloud run services in user guide, introduce a command line option to use XdsCredentials.