0

我正在 GCE 实例上安装 stackdriver 代理,它给了我错误:

$ sudo /opt/stackdriver/stack-config --write-gcm

Checking platform...
Using Cloud Monitoring API
update-rc.d: warning:  start runlevel arguments (none) do not match stackdriver-extractor Default-Start values (2 3 4 5)
update-rc.d: warning:  stop runlevel arguments (none) do not match stackdriver-extractor Default-Stop values (0 1 6)
Disabling system startup links for /etc/init.d/stackdriver-extractor ...
Removing any system startup links for /etc/init.d/stackdriver-extractor ...
  /etc/rc0.d/K20stackdriver-extractor
  /etc/rc1.d/K20stackdriver-extractor
  /etc/rc2.d/K80stackdriver-extractor
  /etc/rc3.d/K80stackdriver-extractor
  /etc/rc4.d/K80stackdriver-extractor
  /etc/rc5.d/K80stackdriver-extractor
  /etc/rc6.d/K20stackdriver-extractor
Adding system startup for /etc/init.d/stackdriver-extractor ...
 /etc/rc0.d/K20stackdriver-extractor -> ../init.d/stackdriver-extractor
 /etc/rc1.d/K20stackdriver-extractor -> ../init.d/stackdriver-extractor
 /etc/rc6.d/K20stackdriver-extractor -> ../init.d/stackdriver-extractor
 /etc/rc2.d/K80stackdriver-extractor -> ../init.d/stackdriver-extractor
 /etc/rc3.d/K80stackdriver-extractor -> ../init.d/stackdriver-extractor
 /etc/rc4.d/K80stackdriver-extractor -> ../init.d/stackdriver-extractor
 /etc/rc5.d/K80stackdriver-extractor -> ../init.d/stackdriver-extractor
Restarting services
 * Restarting Stackdriver metrics collection agent stackdriver-agent
Unable to determine collectd endpoint!
 * not starting, configuration error
...fail!

我该如何解决?

4

1 回答 1

1

我发现了我的问题,我们正在使用一个堆栈驱动程序帐户并从多个 GCP 项目收集指标,因此我需要为该帐户使用 API 密钥(--api-key 选项)而不是执行默认的 GCM 安装(- -write-gcm 选项)。

于 2016-04-06T16:58:17.183 回答