Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CPU和内存使用率的计算增加过滤条件,修复超过100%的问题 #3600

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

yuyudeqiu
Copy link
Contributor

@yuyudeqiu yuyudeqiu commented Nov 11, 2024

从监控平台获取 container 指标数据如container_cpu_usage_seconds_total,可能会包含一些汇总数据,导致最终计算结果不准确,超过100%

汇总数据的字段中,不包含pod_name等字段,只需要通过pod_name!=""等方式就可以将汇总数据过滤掉,只得到非汇总的数据,

wecom-temp-291965-dd09f6d3e552b32e51b347a000aef0d3

wecom-temp-294594-3a8d0b1522a87508aff697405f23d76c

@ifooth ifooth merged commit 1c5e3c0 into TencentBlueKing:master Nov 11, 2024
14 checks passed
evanlixin added a commit that referenced this pull request Nov 12, 2024
* github-bk-bcs/master:
  feat: 添加创建gke集群功能 (#3514)
  update (#3601)
  fix: CPU和内存使用率的计算增加过滤条件 (#3600)
  feat: bcs 纳管集群相关文档 (#3597)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants