Kubecost has 3 primary use cases:
Kubecost is an API first solution - meaning that everything available in the UI is also available via API.
This portion of the lab will focus on the UI.
The main overview page shows high-level trends and a summary of what this instance of Kubecost is managing.
To understand which objects are consuming the most resources in monitored clusters, click Monitor then Allocations in the navigation tree on the left-hand side of the screen.
The Allocations page is where we drive the primary business objectives, chargeback and showback. We achieve this by several different aggregation methods over a given date range, giving flexibility to the user on how to display the data.
We aggregate the resources in a variety of ways the most common of which are:
Before we start playing with the view, let’s define what is shown in the table on the Allocations page. Let’s aggregate by Namespace and take a look at the colum headers listed below:
Now that we have that out of the way, let’s dive into the different views available in the chart.
Click on the Edit button at the top of the Allocations page. This view can be customized based on given requirements. Some of the most useful settings are:
Within the UI, note that you can click the three dots on the far right of the row and select “Inspect” to open a detailed view of that resources, or click the row to drill into that resource. This gives you the ability to drill down to the container level of a given resource to view CPU, RAM, Efficiency, and Savings for a given resource. When you get to the container level, you can see where Kubecost starts making recommendations on breakdown on container resources that can lead to savings.