0

尝试将自定义指标从我的代码推送到 Google Stackdriver 时出现以下错误。我正在使用 Java SDK。

Caused by: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Unknown metric: custom.googleapis.com/jvm/heap/used (cannot auto-create custom metric descriptors without a Stackdriver account). at io.grpc.Status.asRuntimeException(Status.java:526)
4

1 回答 1

1

解决方案是打开 Stackdriver Monitoring 并添加运行代理代码的项目。这意味着要么创建一个新的 SD 监控项目,要么将 GCP 项目添加到现有的 SD 监控项目中。一个 SD 监控项目可以与多个 GCP 项目相关联。

于 2018-02-05T16:06:14.347 回答