[英]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.