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

Consume log based metrics #34

Open
jlunaq opened this issue Jul 14, 2022 · 1 comment
Open

Consume log based metrics #34

jlunaq opened this issue Jul 14, 2022 · 1 comment

Comments

@jlunaq
Copy link

jlunaq commented Jul 14, 2022

Hi,

Thanks for this awesome work,
A quick question. Is there any way to query log-based metrics using this crate?

@yoshidan
Copy link
Owner

Hi jlunaq!

Currently this lib doesn't support Cloud Logging API. But you can create by following steps.

  1. Add the cloud logging proto into https://github.com/yoshidan/google-cloud-rust/blob/main/googleapis/build.rs
"googleapis/google/logging/v2/logging.proto",
"googleapis/google/logging/v2/logging_metrics.proto",
  1. Generate gRPC type by cargo.
    https://github.com/yoshidan/google-cloud-rust/blob/main/googleapis/README.md

  2. Create cloud logging client like other clients with using generated types.

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

No branches or pull requests

2 participants