执行数据狗代理信息命令时出错:实例#0 [错误]:'Failed connection [Errno 61] Connection refused'

error while executing datadog-agent info command : instance #0 [ERROR]: 'Failed connection [Errno 61] Connection refused'

conf.d中的

statd.yaml配置如下

init_config:

instances:
  - host: localhost
    port: 8125

启动 Datadog-agent 后出现如下所示的错误

其他一切正常,同样在 datadog-conf 中,我也提到了转发器的 IP 和 API 密钥,但它没有显示在 Datadog webUI 的主机映射中

我注意到 Datadog 的 API 键每次在关闭站点并打开一个新实例时都会发生变化。所以输入新的 API key 后,问题就解决了