gpt4 book ai didi

Kubernetes dashboard: How to access more than 15 minutes of CPU and memory usage in the Web UI dashboard(Kubernetes仪表板:如何在Web UI仪表板中访问超过15分钟的CPU和内存使用情况)

转载 作者:bug小助手 更新时间:2023-10-24 23:53:12 27 4
gpt4 key购买 nike



The web UI dashboard (which is rendered by running 'kubectl proxy') is very useful and gives a great highlevel overview of the cluster. However the CPU and memory usage graphs seems to be hardcoded to display only the last 15 minutes. I am not able to find any settings that allows me to increase this, nor could I find any documentation on how to do this. Our team is exploring setting up grafana/influxdb and other services to get more detailed metrics, but it will be nice if there is an option to increase the timeline to the webui dashboard.

Web用户界面仪表板(通过运行‘kubectl Proxy’来呈现)非常有用,并且提供了集群的高级概述。然而,CPU和内存使用情况图似乎被硬编码为仅显示最近15分钟。我找不到任何允许我增加此设置的设置,也找不到任何有关如何执行此操作的文档。我们的团队正在探索建立grafana/fluxdb和其他服务,以获得更详细的指标,但如果有一个选项可以增加到WebUI仪表板的时间线,那就更好了。


更多回答

AFAIK that's not possible out of the box. You could fork and edit the dashboard, but using an external tool (Prometheus+grafana) would be just easier.

这是不可能开箱即用的。你可以分叉和编辑仪表板,但使用外部工具(普罗米修斯+Grafana)会更容易。

优秀答案推荐

This is now possible as of version 2.4.0 (maybe even earlier versions, I did not check the exact version where the feature was implemented).

从2.4.0版开始,这是可能的(可能是更早的版本,我没有检查实现该功能的确切版本)。


For dashboard version 2, it is as simple as changing the metrics scraper configuration to larger --metric-duration values. If you are using official Helm charts for deployment:

对于仪表板版本2,只需将指标刮取器配置更改为更大的指标持续时间值即可。如果您使用官方Helm图表进行部署:


metricsScraper:
enabled: true
args:
- --metric-duration=2h
- --metric-resolution=5m

Otherwise, adapt this info to your current deployment scenario.

否则,请根据您当前的部署方案调整此信息。


更多回答

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