Currently Dashboard implements metrics-server and Heapster integrations. They are using integration framework that allows to support and integrate more metric providers as well as additional applications such as Weave Scope or Grafana.
Metric integrations allow Dashboard to show cpu/memory usage graphs and sparklines of resources running inside the cluster. In order to make Dashboard resilient to metric provider crashes there was --metric-client-check-period
flag introduced. By default every 30 seconds health of the metric provider will be checked and in case it crashes metrics will be disabled.
For the sparklines and graphs to be shown in Dashboard you need to have metrics-server running in your cluster. It now uses dashboard-metrics-scraper that is deployed by default with Kubernetes Dashboard. It uses the Metrics API to gather metrics.
The easiest way to check if metrics-server
is installed and working properly is to run kubectl top pod
or kubectl top node
.
Starting from Kubernetes Dashboard v2.0.0 Heapster is no longer maintained. Use metrics-server integration to enable metrics.
Copyright 2019 The Kubernetes Dashboard Authors
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。