惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
量子位
S
SegmentFault 最新的问题
博客园 - 聂微东
博客园 - 【当耐特】
J
Java Code Geeks
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
V
V2EX
人人都是产品经理
人人都是产品经理
博客园 - Franky
罗磊的独立博客
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

Apptio

How IBM Apptio Delivers Data Center Value in the Age of AI - Apptio Managing K8s Agent Updates at Scale with Helm and Terraform - Apptio GitOps with IBM Kubecost: Preventing Argo CD Rollbacks - Apptio GitOps with IBM Kubecost: API-Driven Rightsizing - Apptio It’s Here: Meet the New IBM Apptio Report Studio – A Faster, More Intuitive Approach to Reporting - Apptio New Tech, Same Rules: Cloud Lessons for an AI Advantage - Apptio IBM Cloudability Advanced Containers for Kubernetes FinOps - Apptio The Next Era of IT Financial Management Reporting with the New IBM Apptio Report Studio - Apptio From Guesswork to Confidence: Introducing Intelligent Forecasting for Tech Spend Planning - Apptio Smarter Technology Spend with AI-Driven Financial Intelligence - Apptio Budgets Are Up, Confidence Isn't: 2026 Global Tech Investment Insights - Apptio IBM Kubecost 3.1: Kubernetes Resource Quota Rightsizing - Apptio Driving FinOps Forward in 2025 and Beyond - Apptio ITFM Maturity: The Next CIO Imperative in the Age of Innovation - Apptio How Banks Can Optimize IT Spend Without Sacrificing Impact - Apptio Introducing IBM Apptio Product TCO: Turn Product Spend into Strategic Investments with Clear, End-to-End Total Cost of Ownership and Unit Costs: Creating a Strategic Lens for IT Investment Decisions - Apptio Workforce Management: The Engine of Strategic Portfolio Management - Apptio FinOps for AI: Enabling the Next Wave of Cloud Innovation - Apptio IBM Kubecost 3.0: Faster, Smarter, and Built for Scale - Apptio Introducing IBM Apptio Mainframe TCO: Complete Visibility into Mainframe Costs and Usage - Apptio Essential K8s Cost Metrics for Reducing Spend - Apptio The New Standard for Strategic Portfolio Management: Financial Visibility at Every Level - Apptio K8s Cost Ownership: Who’s Responsible and How to Make It Work - Apptio Kubecost 2.8: Centralized Custom Pricing and a Big Performance Leap with ClickHouse - Apptio Unlock the Power of IT Financial Management with IBM Apptio Essentials - Apptio Full Transparency for Smart AI Investments with IBM Apptio’s AI Total Cost of Ownership & Usage - Apptio What’s New in IBM Apptio Planning - Apptio Labeling in Kubernetes: From Metadata to Money-Saving Insights - Apptio Innovative Approaches to Drive Tech Spend Management with AI, Analytics, and Automation - Apptio
Getting Highly Accurate and Granular Cost Metrics with Ku...
David Green · 2024-04-19 · via Apptio

In the world of cost monitoring and visibility, having accurate data is vital for businesses. When it comes to managing budgets, avoiding overspending, or enhancing efficiency, getting the most accurate information at your disposal makes all the difference. Kubecost offers several methods to enhance the accuracy of your Kubecost cost metrics. In this blog we explore each method, including the newest method for predicting short-term costs, before they are billed by their cloud service providers (CSPs).

Harnessing cloud provider on-demand pricing

Without any configuration, Kubecost identifies the cloud service provider (CSP) source of clusters it has been installed on, and can then use public APIs from those CSPs to provide a starting point for its cost metrics.

For AWS, this pricing is sourced from their Price List Query API. For Azure, users must enable this pricing query through configuration of the Billing Rate Card API.

This initial step serves as a passive, and directionally accurate, foundation for delivering cost insights. However, users can enhance data accuracy by taking additional measures.

Cloud provider billing integration

Upon Kubecost installation, [integrating billing data with CSPs](https://docs.kubecost.com/install-and-configure/install/cloud-integration) should be a top priority. This will provide value beyond basic assets tracking, including any cloud services you use beyond just Kubernetes resources. Kubecost provides dedicated integration guides for all three major CSPs as well as additional troubleshooting and support.

Kubecost Cloud Integrations

Reconciliation

What’s crucial about cloud integration is that it will enable Kubecost to perform reconciliation, a process that matches in-cluster assets with items found in the billing data pulled from each CSP. This can correct the price, for example, of nodes prices that were previously assumed to be on-demand rates.

Kubecost’s Allocation and Assets pages have visual support for recognizing unreconciled costs. In the Kubecost UI, select Settings from the left navigation, then under ‘Pricing’, toggle on Highlight Unreconciled Costs, then select Save at the bottom of the page. Your most recent cost data will now be displayed with a hatching effect to distinguish it from reconciled data.

Kubecost Allocations Unreconciled Costs Screenshot

Reconciliation requires approximately 36-48 hours following resource usage to update accordingly.

Short-term cost estimation

After completing reconciliation, Kubecost can then estimate node pricing for the period of time before the billing data is available. This estimation is used on hourly and daily intervals by comparing the past 7 days of actual billed costs.

Catering to air-gapped environments

For users who don’t rely largely on CSP infrastructure, you may wonder what pricing features exist for you. Kubecost doesn’t forget about users with air-gapped environments, and makes sure to provide pricing assistance via custom and CSV pricing.

Custom pricing

Kubecost provides a configurable pricing tool known as Custom Pricing, which can be adjusted through the product UI or your values.yaml file.
Custom pricing allows you to provide manual monthly pricing values which will override cloud billing data from any APIs, which should be applied before any discounts. This includes values for CPU/GPU/RAM prices, as well as Spot CPU/RAM prices and storage prices.Kubecost Custom Pricing

To access custom pricing via the Kubecost UI, select the Settings page from the left navigation, then under ‘Pricing’, toggle on Enable Custom Pricing. You can adjust the fields as needed (just remember to select Save at the bottom of the page when finished).
You can configure these values in your values.yaml file under the `kubecostProductConfigs` flag:


kubecostProductConfigs:
customPricesEnabled: true
defaultModelPricing:
enabled: true
CPU: 28.0 # Single core per month cost
spotCPU: 4.86 # Single core per month cost
RAM: 3.09 # GB per month cost
spotRAM: 0.65 # GB per month cost
GPU: 693.50 # per month cost
spotGPU: 225.0 # per month cost
storage: 0.04 # per GB per month cost
zoneNetworkEgress: 0.01 # per GB per month cost
regionNetworkEgress: 0.01 # per GB per month cost
internetNetworkEgress: 0.12 # per GB per month cost

Once you’ve made your changes, run a helm upgrade command to your Kubecost environment:


$ helm upgrade kubecost cost-analyzer \
--repo https://kubecost.github.io/cost-analyzer/ \
--namespace kubecost --create-namespace \
--values values.yaml

CSV pricing

CSV pricing is an Enterprise-only (mature beta) feature which allows for further configuration of custom pricing. Using a CSV file, users can provide pricing information for individual assets such as on-prem clusters, or for external enterprise discounts.
A complete summary for creating and configuring this CSV file can be found in our CSV Pricing doc.

Closing thoughts

Kubecost stands as the premier solution for Kubernetes and cloud service cost monitoring, providing unparalleled accuracy and granularity in cost insights. Whether you’re a cloud consumer or operating in air-gapped environments, Kubecost offers tailored features to provide you with the most up-to-date cost insights. If you haven’t used Kubecost before, you can get started today in minutes.