gpt4 book ai didi

google-compute-engine - Google Cloud Logging + Google流利的丢弃消息

转载 作者:行者123 更新时间:2023-12-02 12:23:53 25 4
gpt4 key购买 nike

我在GKE中运行着一个很小的(1-2节点)kubernetes集群,运行了±40个Pod。当前的问题是它没有正确登录到GCE控制台。我从流畅的容器中看到许多消息,格式如下:

$ kubectl logs fluentd-cloud-logging-gke-xxxxxxxx-node-xxxx

2016-02-02 23:30:09 +0000 [warn]: Dropping 10 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."
2016-02-02 23:30:09 +0000 [warn]: Dropping 1 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."
2016-02-02 23:30:09 +0000 [warn]: Dropping 3 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."
2016-02-02 23:30:09 +0000 [warn]: Dropping 41 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."
2016-02-02 23:30:09 +0000 [warn]: Dropping 5 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."

...等等。我每秒看到约5条消息,所以我知道事情正在产生日志。但是,在计算引擎控制台中,我看到类似以下内容:

compute engine console logging page snapshot with some portions redacted

因此,介于两者之间的某处显然是丢失了许多消息。不过奇怪的是,我没有失去所有这些信息!

根据GH问题 #15727中的建议,为集群配置了Logging.write和Monitoring.all特权。

最佳答案

某些日志正在显示,这确实令人困惑。鉴于该错误消息,我希望您的所有日志都不会显示在查看器中,因为听起来好像尚未为您的项目启用日志记录API。

您可以从开发者控制台here进行操作。尝试去那里,单击Enable API按钮,然后查看错误是否继续出现。

关于google-compute-engine - Google Cloud Logging + Google流利的丢弃消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35165973/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com