【问题标题】:Dockerized stackdriver agent - payloadErrors in logsDockerized stackdriver agent - 日志中的payloadErrors
【发布时间】:2018-05-27 01:02:43
【问题描述】:

我们已经对 stackdriver 代理进行了 docker 化,并使用来自基本主机的 /proc 卷来监控进程。在 collectd.log 中,我们经常遇到以下错误:

关于这个问题的任何线索?

    [2017-12-13 07:07:26] write_gcm: Server response (CollectdTimeseriesRequest) contains errors:
{
  "payloadErrors": [
    {
      "index": 218,
      "error": {
        "code": 3,
        "message": "Expected 4 labels. Found 0. Mismatched labels for payload [values {\n  data_source_name: \"value\"\n  data_source_type: GAUGE\n  value {\n    double_value: 483561472\n  }\n}\nstart_time {\n  seconds: 1513148845\n  nanos: 819266918\n}\nend_time {\n  seconds: 1513148845\n  nanos: 819266918\n}\nplugin: \"processes\"\nplugin_instance: \"all\"\ntype: \"ps_rss\"\n] on resource [type: \"gce_instance\"\nlabels {\n  key: \"instance_id\"\n  value: \"504805423291753409\"\n}\nlabels {\n  key: \"zone\"\n  value: \"europe-west1-b\"\n}\n] for project XXXXXXXXXXX"
      }
    }
  ]
}

【问题讨论】:

    标签: collectd google-cloud-stackdriver


    【解决方案1】:

    我遇到了同样的问题并联系了 Google Cloud 支持。他们告诉我,Stackdriver 服务最近已更新以接受有关 ps_rss 指标的更详细信息,但它导致来自旧代理的指标根本无法发送。

    您应该可以通过upgrading your Stackdriver agent 将此问题修复到最新版本。我最近更新了,从那以后就没有看到过这个问题。

    【讨论】:

      猜你喜欢
      • 2019-01-29
      • 2017-08-05
      • 2019-01-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-01
      • 2019-07-26
      • 1970-01-01
      相关资源
      最近更新 更多