Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kannanjgithub
Copy link
Contributor

To demonstrate using the CSM mesh client to talk to cloud run services in user guide, introduce a command line option to use XdsCredentials.

Copy link
Member

@ejona86 ejona86 left a 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]]]]");
Copy link
Member

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...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@kannanjgithub
Copy link
Contributor Author

It seems weird to do this in the observability example. Cloud Run is unrelated to csm observability.

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.

@kannanjgithub
Copy link
Contributor Author

kannanjgithub commented Sep 9, 2024

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
image: grpc/csm-o11y-example-cpp-server:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants