从Kubernetes上运行的Prometheus中抓取节点导出器时出错

时间:2017-07-20 13:15:42

标签: kubernetes prometheus

我在Kubernetes集群上运行Prometheus pod。我在Openstack中的实例上安装了node-exporter。它运行正常。我在prometheus配置文件中添加了它的配置。重新加载后,目标节点导出器显示但其状态为Down,错误为context deadline exceeded。我尝试增加scrape-timeout,但它也有用。休息所有目标都工作正常,UP。我试图从容器内部ping目标端点,它也没关系。但遗憾的是,内部容器中没有curlwget来检查指标端点。这是配置文件片段。

- job_name: "node-exporter"
  metrics_path: '/metrics/'
  static_configs:
    - targets: ['192.168.248.243:9100']

我检查了prometheus日志,他们在这里。

time="2017-07-20T12:53:37Z" level=info msg="Checkpointing in-memory metrics and chunks..." source="persistence.go:549" 
time="2017-07-20T12:53:44Z" level=info msg="Done checkpointing in-memory metrics and chunks in 6.631738129s." source="persistence.go:573" 
time="2017-07-20T12:54:18Z" level=error msg="Watch nodes unexpectedly closed: EOF" source="node.go:162" 
time="2017-07-20T12:58:44Z" level=info msg="Checkpointing in-memory metrics and chunks..." source="persistence.go:549" 
time="2017-07-20T12:58:50Z" level=info msg="Done checkpointing in-memory metrics and chunks in 6.154427033s." source="persistence.go:573" 
time="2017-07-20T12:58:58Z" level=error msg="Watch pods unexpectedly closed: EOF" source="pod.go:169" 
time="2017-07-20T13:01:13Z" level=info msg="Loading configuration file /etc/prometheus/conf/prometheus.yml" source="main.go:247" 
time="2017-07-20T13:01:42Z" level=error msg="Watch pods unexpectedly closed: EOF" source="pod.go:169" 

我的Kubernetes版本是1.6.4。

0 个答案:

没有答案