gpt4 book ai didi

Kubernetes heapster - Grafana 不显示 influxdb 数据

转载 作者:行者123 更新时间:2023-12-02 01:25:53 25 4
gpt4 key购买 nike

我按照 heapster-influxDB guide 使用 influxdb 和 grafana 部署了 heapster .当访问 grafana 实例时,我在图表中看不到任何数据(grafana 服务从 NodePort 暴露给外部)。 heapster 和 influxdb 日志中没有错误,如下所示。

这可能是什么问题?非常感谢积极的反馈。

$ kubectl version
Server Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.3", GitCommit:"6a81b50c7e97bbe0ade075de55ab4fa34f049dc2", GitTreeState:"clean"}

Grafana 仪表板

enter image description here

Grafana 数据源设置

enter image description here

堆日志

I0510 10:33:12.556974       1 heapster.go:60] /heapster --source=kubernetes:https://kubernetes.default --sink=influxdb:http://monitoring-influxdb:8086
I0510 10:33:12.557111 1 heapster.go:61] Heapster version 1.1.0-beta1
I0510 10:33:12.557394 1 configs.go:60] Using Kubernetes client with master "https://kubernetes.default" and version "v1"
I0510 10:33:12.557414 1 configs.go:61] Using kubelet port 10255
I0510 10:33:12.619309 1 influxdb.go:199] created influxdb sink with options: host:monitoring-influxdb:8086 user:root db:k8s
I0510 10:33:12.619546 1 heapster.go:87] Starting with InfluxDB Sink
I0510 10:33:12.619601 1 heapster.go:87] Starting with Metric Sink
I0510 10:33:12.637683 1 heapster.go:166] Starting heapster on port 8082
I0510 10:33:35.000319 1 manager.go:79] Scraping metrics start: 2016-05-10 10:33:00 +0000 UTC, end: 2016-05-10 10:33:30 +0000 UTC
I0510 10:33:35.292539 1 manager.go:152] ScrapeMetrics: time: 292.067849ms size: 78
I0510 10:33:35.300239 1 influxdb.go:177] Created database "k8s" on influxDB server at "monitoring-influxdb:8086"

I0510 10:34:05.000270 1 manager.go:79] Scraping metrics start: 2016-05-10 10:33:30 +0000 UTC, end: 2016-05-10 10:34:00 +0000 UTC
I0510 10:34:05.274965 1 manager.go:152] ScrapeMetrics: time: 274.615057ms size: 78
I0510 10:34:35.000246 1 manager.go:79] Scraping metrics start: 2016-05-10 10:34:00 +0000 UTC, end: 2016-05-10 10:34:30 +0000 UTC
I0510 10:34:35.247562 1 manager.go:152] ScrapeMetrics: time: 247.236807ms size: 78
I0510 10:35:05.000265 1 manager.go:79] Scraping metrics start: 2016-05-10 10:34:30 +0000 UTC, end: 2016-05-10 10:35:00 +0000 UTC

Influxdb 日志 https://drive.google.com/open?id=0B4f4RNm4mfqWZGtqbVBnWUJ2QjA

引用我使用的yaml文件。 https://drive.google.com/open?id=0B4f4RNm4mfqWY2pZRmViWHFuMFk

InfluxDB 数据 https://drive.google.com/open?id=0B4f4RNm4mfqWQTFxcFVhdko2Vms

Heapster api 数据 https://drive.google.com/open?id=0B4f4RNm4mfqWQVhEZ3oxdEs1VTA

最佳答案

刚好是Heapster master分支版本不兼容部分Kubernetes集群。我尝试了最新的 Beta 版本并且它有效。

https://github.com/kubernetes/heapster/releases/tag/v1.2.0-beta.0

关于Kubernetes heapster - Grafana 不显示 influxdb 数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37152371/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com