【问题标题】:Error pushing custom metric to Google Stackdriver将自定义指标推送到 Google Stackdriver 时出错
【发布时间】:2018-02-05 16:06:14
【问题描述】:

我在尝试将自定义指标从我的代码推送到 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)

【问题讨论】:

    标签: stackdriver google-cloud-stackdriver


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2018-05-14
      • 1970-01-01
      • 1970-01-01
      • 2020-01-25
      • 2018-07-09
      • 2017-09-13
      • 1970-01-01
      • 2017-12-02
      • 2019-11-18
      相关资源
      最近更新 更多