google-cloud-rust icon indicating copy to clipboard operation
google-cloud-rust copied to clipboard

Consume log based metrics

Open jlunaq opened this issue 3 years ago • 1 comments

Hi,

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

jlunaq avatar Jul 14 '22 17:07 jlunaq

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.

yoshidan avatar Jul 15 '22 02:07 yoshidan