googlecloudprofiler元数据服务器警告

2024-09-29 06:26:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在本地运行的python脚本中使用googlecloudprofiler。它似乎在连接元数据服务器时遇到问题:

WARNING:googlecloudprofiler.client:Failed to fetch instance/zone from GCE metadata server: HTTPConnectionPool(host='metadata', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/zone (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known',))

WARNING:googlecloudprofiler.client:Failed to fetch instance/name from GCE metadata server: HTTPConnectionPool(host='metadata', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/name (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known',))

由于应用程序似乎正在正确运行,并且探查器正在成功收集数据,因此我是否可以忽略这些警告,或者将来可能会遇到一些问题?你知道吗


Tags: to数据instancefromclienthostzoneserver
1条回答
网友
1楼 · 发布于 2024-09-29 06:26:11

如果您在本地运行(例如,没有在配置中手动分区),则会出现这些警告,因此忽略它们绝对是可以的。你知道吗

(披露:我在谷歌Stackdriver Profiler工作)

相关问题 更多 >