Heapster是一个集群范围的监视和事件数据聚合器。它本身支持Kubernetes,可以在所有Kubernetes设置上运行。Heapster作为群集中的一个群集运行,类似于其他任何Kubernetes应用程序的运行方式。
InfluxDB是一个用Go编写的开源数据库,专门用于处理具有高可用性和高性能要求的时间序列数据。它公开了一个易于使用的API来写入和获取时间序列数据。Heapster设置为在大多数Kubernetes集群上默认使用InfluxDB作为存储后端。
Grafana是我们的监控设置中的数据可视化组件。它在Kubernetes集群中是可用的。默认仪表板显示集群的资源使用情况以及其内部的窗格。这个仪表板可以很容易地定制和扩展。
官方Github
kubernetes 1.8.3
heapster-amd64:v1.4.2
influxdb-amd64:v1.3.3
grafana-amd64:v4.4.3
二、部署
部署只需要下载4个文件,并创建他们就可以了。当然前提是你有镜像。
$?kubectl?create?-f?deploy/kube-config/influxdb/$?kubectl?create?-f?deploy/kube-config/rbac/heapster-rbac.yaml
Running后稍等一会登录Dashboard
CPU和MEMORY显示就代表heapster运行成功
三、Grafana
Url可以通过kubectl cluster-info查询
[root@node1?~]#?kubectl?cluster-info?Kubernetes?master?is?running?at?https://192.168.1.121:6443dnsmasq?is?running?at?https://192.168.1.121:6443/api/v1/namespaces/kube-system/services/dnsmasq/proxyHeapster?is?running?at?https://192.168.1.121:6443/api/v1/namespaces/kube-system/services/heapster/proxyKubeDNS?is?running?at?https://192.168.1.121:6443/api/v1/namespaces/kube-system/services/kube-dns/proxykubernetes-dashboard?is?running?at?https://192.168.1.121:6443/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxymonitoring-grafana?is?running?at?https://192.168.1.121:6443/api/v1/namespaces/kube-system/services/monitoring-grafana/proxymonitoring-influxdb?is?running?at?https://192.168.1.121:6443/api/v1/namespaces/kube-system/services/monitoring-influxdb/proxyTo?further?debug?and?diagnose?cluster?problems,?use?‘kubectl?cluster-info?dump‘.
https://192.168.1.121:6443/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/
Kubernetes addons Heapster
原文地址:http://blog.51cto.com/brave666/2049161