We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug 开发者们你们好,我正在为我们公司做一些 Cloud Carbon report/footprint 的工具调研。目前正在评估crane. 之前看了一篇文章 如过这篇文章的描述是正确的,https://www.cncf.io/blog/2023/03/27/model-view-and-reduce-your-workload-carbon-emission-by-crane-in-a-declarative-way/,通过代码观察,感觉描述的和实际做的不是完全一致。希望能解惑。
http://localhost:9090/undefined/api/v1/prometheus/query_range?end=1686940364&query=((sum(label_replace(irate(container_cpu_usage_seconds_total{container!=""}[5m]), "node", "$1", "instance", "(^[^:]+)") * on (node) group_left() max(kube_node_labels{label_beta_kubernetes_io_instance_type!~"eklet", label_node_kubernetes_io_instance_type!~"eklet"}) by (node)) / SUM(kube_node_status_capacity{resource="cpu", unit="core"} * on (node) group_left() max(kube_node_labels{label_beta_kubernetes_io_instance_type!="eklet", label_node_kubernetes_io_instance_type!~"eklet"}) by (node))) * (3.84 - 0.743) + 0.743) * (SUM(kube_node_status_capacity{resource="cpu", unit="core"} * on (node) group_left() max(kube_node_labels{label_beta_kubernetes_io_instance_type!="eklet", label_node_kubernetes_io_instance_type!~"eklet"}) by (node))) * 0.581 &start=1686335564&step=1h
我的理解是 [0.743 + (containers 的 cpu 使用率合 / 总核数)*(3.84-0.743)] * 总核数 * 0.581 (碳排放系数) 不知道这样理解对不?
不知道有啥更好的方式联系你们,如果有其他方式请告知。谢谢
Reproduce steps
Expected behavior
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
🤖 By issues-similarity-analysis
Sorry, something went wrong.
No branches or pull requests
Describe the bug
开发者们你们好,我正在为我们公司做一些 Cloud Carbon report/footprint 的工具调研。目前正在评估crane. 之前看了一篇文章
如过这篇文章的描述是正确的,https://www.cncf.io/blog/2023/03/27/model-view-and-reduce-your-workload-carbon-emission-by-crane-in-a-declarative-way/,通过代码观察,感觉描述的和实际做的不是完全一致。希望能解惑。
文章中说
AverageWatts = MinWatts + AverageCPUUsage * (MaxWatts – MinWatts)
CPUEnergyConsumption = AverageWatts * RunningHours
从代码看到是
我的理解是
[0.743 + (containers 的 cpu 使用率合 / 总核数)*(3.84-0.743)] * 总核数 * 0.581 (碳排放系数)
不知道这样理解对不?
不知道有啥更好的方式联系你们,如果有其他方式请告知。谢谢
Reproduce steps
Expected behavior
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: