简体   繁体   English

如何查看 BigQuery Storage API 日志?

[英]How can I see BigQuery Storage API Logs?

I am trying to perform a log analysis for BigQuery.我正在尝试对 BigQuery 执行日志分析。 Unfortunately, I cannot find calls to the Bigquery Storage API ( https://cloud.google.com/bigquery/docs/reference/storage/rpc ) in Stackdriver.不幸的是,我在 Stackdriver 中找不到对 Bigquery Storage API ( https://cloud.google.com/bigquery/docs/reference/storage/rpc ) 的调用。

To generate some traceable logs I executed the following (modified) code:为了生成一些可追踪的日志,我执行了以下(修改过的)代码:

import pandas as pd
import pandas_gbq

df_rest = pd.read_gbq(
    "SELECT something as rest_api_call FROM my_test_table", 
    use_bqstorage_api=False
)

df_storage = pd.read_gbq(
    "SELECT something as storage_api_call FROM my_test_table", 
    use_bqstorage_api=True
)

The REST API call can be found in the logs viewer https://console.cloud.google.com/logs/viewer under the resource BigQuery . REST API 调用可以在资源BigQuery下的日志查看器https://console.cloud.google.com/logs/viewer中找到。 I cannot find the logs corresponding to the Storage API call.我找不到与 Storage API 调用对应的日志。 Does anybody know where I can find them?有人知道我在哪里可以找到它们吗?

Thanks in advance!提前致谢!

This is not possible at the moment because the API calls don't generally generate logs in Stackdriver.目前这是不可能的,因为 API 调用通常不会在 Stackdriver 中生成日志。 Metrics are accessible through the APIs & Services menu.可通过 API 和服务菜单访问指标。

A public feature request was opened in the Google Issue Tracker .在 Google Issue Tracker中打开了一个公共功能请求。 Please star the Feature Request if you come across this problem.如果您遇到此问题,请为功能请求加注星号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过 API 或 CLI 在 Google BigQuery 中取消授权查看 - How can I unathorized view in Google BigQuery via API or CLI 如何使用 BigQuery Storage API 并发读取 Python 线程中的流 - How to use BigQuery Storage API to concurrently read streams in Python threads 如何在 session 超时后从 BigQuery Storage API 恢复读取 - How to resume reading from BigQuery Storage API upon session timeout 避免 session 关闭 BigQuery 存储 API 与 Dataflow - Avoid session shutdown on BigQuery Storage API with Dataflow 使用 BigQuery 存储时 golang 中的 BigQuery 可为空类型写入 API - BigQuery nullable types in golang when using BigQuery storage write API 如何使用 google cloud bigquery 进行集成测试 - How can I make integration tests with google cloud bigquery 使用 BigQuery 存储写入 API 的 Google 数据流存储到特定分区 - Google Dataflow store to specific Partition using BigQuery Storage Write API 如何在 BigQuery 中检索 IP 地址的地理位置信息? - How I can retrieve geolocation info for an IP Address in BigQuery? 如何在 BigQuery 中编写条件 string_agg 函数? - How can I write a conditional string_agg function in BigQuery? 如何筛选包含数组数据的 BigQuery 数据集? - How can I filter a BigQuery dataset that contains array data?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM