Kubernetes Cost Monitoring: 3 Metrics You Need to Track ASAP
Tags: kubernetes, cloud, devops
Published: 2022-09-22 16:01:31

<!-- wp:paragraph -->
<p>Cost visibility is the first step to managing and forecasting cloud costs. But before you splurge on a Kubernetes cost monitoring solution, make sure that it includes these three crucial metrics.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Picking the right cost monitoring areas to focus on makes a difference in how you budget for the cloud and <a href="https://cast.ai/blog/why-investigating-a-cloud-cost-issue-doesnt-have-to-take-hours-or-days/" target="_blank" rel="noreferrer noopener">investigate cost spikes</a>. Here are three metrics that help teams meet their FinOps goals.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="h-3-cloud-cost-metrics-every-team-needs-to-track">3 cloud cost metrics every team needs to track</h2>
<!-- /wp:heading -->

<!-- wp:heading -->
<h2 id="h-1-daily-cloud-spend">1. Daily cloud spend&nbsp;</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Are your current cloud costs compatible with your budget? What is your burn rate?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>To keep cloud expenses in check, you need to have all the data at hand to <strong>easily extrapolate your daily or weekly expenses into your monthly bill.</strong> The daily spend report helps to do just that.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Suppose you have a budget of $1,000 per month. You should be able to check whether you’re still running under the budget or at least in line with it. If your average daily spend is closer to $50 than c. $33 (30 days x $33 = $990), you’re likely to end up with a higher cloud bill than expected.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This is an example of the daily spend report from CAST AI, which shows all this data in one place:</p>
<!-- /wp:paragraph -->

<!-- wp:image -->
<figure class="wp-block-image"><img src="https://lh4.googleusercontent.com/CNxO30xbrGPWG1rDca_P6p6NMbWBPRTRIMplttPPSe6nb1OpDAvPrapa0CWD8AwUQN1WHf96q22Rta39-RJA5nhQH8I7W3ueLRGrMm9GSqPoS8lhwq14E6dB2yqtO2cHDVCliQmhqAZ0o1z3ReDXxEMcemkP82dIJ9IqFhDYohkpucnmZlQwlW2Z" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Another benefit of the daily cloud costs report is that it allows you to <strong>identify outliers in your usage or spend</strong>. You can verify how much you’ve spent each day for the last two weeks and double-check that data for any outliers or cost spikes that might lead to cloud waste.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="h-2-cost-per-provisioned-and-requested-cpu">2. Cost per provisioned and requested CPU</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Another good practice is tracking your cost per provisioned CPU and requested CPU. Why should you differentiate between these two reports?</p>
<!-- /wp:paragraph -->

<!-- wp:quote {"className":"is-style-plain"} -->
<blockquote class="wp-block-quote is-style-plain"><!-- wp:paragraph -->
<p>By comparing the number of requested vs. provisioned CPUs, you can discover this gap and calculate how much you're actually spending per one requested CPU to <strong>make your cost reporting more accurate</strong>.</p>
<!-- /wp:paragraph --></blockquote>
<!-- /wp:quote -->

<!-- wp:paragraph -->
<p>If you’re running a Kubernetes cluster that hasn’t been optimized for cost, you will see a <strong>significant difference</strong> between how much you're provisioning and how much you're actually requesting. You'll see that you're spending money on provisioned CPUs and only end up requesting only a small amount of them.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Let’s illustrate this with an example:</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":13584,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://cast.ai/wp-content/uploads/2022/09/DES-273-3-Cloud-Cost-Reports-Visual-2-1200x1200.png" alt="" class="wp-image-13584"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Your cost per provisioned CPU is $2. Due to the lack of optimization, you waste a lot of resources. As a result, your cost per requested CPU is $10. This means that you’re running your cluster for a price that is <strong>5x higher than expected</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:video {"id":13433} -->
<figure class="wp-block-video"><video controls src="https://cast.ai/wp-content/uploads/2022/09/Utilization-16x9-1.mp4"></video></figure>
<!-- /wp:video -->

<!-- wp:heading -->
<h2 id="h-3-historical-cost-allocation">3. Historical cost allocation&nbsp;</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>You’re an engineering manager who got a cloud bill from the FinOps manager asking why the heck it’s so high. You went over budget like most teams that use public cloud services. But what ended up costing you more than expected?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This is where historical cost allocation makes a difference.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:image -->
<figure class="wp-block-image"><img src="https://lh4.googleusercontent.com/hOVVrtAZIQB4PuQOBDH7lyJofbRhCNKIgELIQTkFYibhwUV3pVgZiidTfCQjfNzWS_gfZIX_yhttnNF5SIPPJPlxJmLjcip3gbFMvPoDiudk3hka7Vn1rMC6Bx_1vczWKnMgUlwX3tZqDdWtl68J7ad8Cn8wH6TH5SdBiJGPWs_WDtBeZY6F1hvLFg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>This report can save you hours, if not days, on investigating where the extra costs come from. By checking last month's spend dashboard, you can <strong>instantly view the cost distribution between namespaces or workloads in terms of dollar spend</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>See a couple of workloads running and using a lot of money but not doing anything? These are idle workloads - the prime driver of cloud waste.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You have the solution. Now you know what to clean up and make the financial operations manager happy next month.&nbsp;&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="h-access-these-three-reports-for-free">Access these three reports for free</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The CAST AI Kubernetes cost monitoring module includes all of these three crucial reports and gives you access to heaps of historical cost data free of charge.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Connect your cluster and analyze your cloud costs in real time to never go over budget again.</p>
<!-- /wp:paragraph -->

<!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between","verticalAlignment":"center"},"style":{"spacing":{"padding":{"top":"2rem","right":"2rem","bottom":"2rem","left":"2rem"},"margin":{"top":"2rem","bottom":"2rem"}}},"backgroundColor":"cast-black","className":"pattern-cta-text-btn"} -->
<div class="wp-block-group pattern-cta-text-btn has-cast-black-background-color has-background" style="margin-top:2rem;margin-bottom:2rem;padding-top:2rem;padding-right:2rem;padding-bottom:2rem;padding-left:2rem"><!-- wp:group {"layout":{"type":"constrained","contentSize":"520px"},"style":{"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"blockGap":"0.5rem"}}} -->
<div class="wp-block-group" style="padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:heading {"level":5} -->
<h5 id="h-cast-ai-clients-save-an-average-of-63-on-their-kubernetes-bills">CAST AI clients <mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-cast-green-color">save an average of 63%</mark> on their Kubernetes bills</h5>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Connect your cluster and see your costs in 5 min, no credit card required.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"left","orientation":"horizontal","flexWrap":"nowrap"}} -->
<div class="wp-block-buttons"><!-- wp:button {"width":100} -->
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link wp-element-button" href="https://console.cast.ai/?screen_hint=SIGNUP" target="_blank" rel="noreferrer noopener">Get started</a></div>
<!-- /wp:group -->