Skip to content

Commit 4479335

Browse files
committed
minor updates
1 parent fba26c5 commit 4479335

File tree

1 file changed

+17
-27
lines changed

1 file changed

+17
-27
lines changed

articles/aks/cost-analysis.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Azure Kubernetes Service cost analysis (preview)
2+
title: Azure Kubernetes Service cost analysis
33
description: Learn how to use cost analysis to surface granular cost allocation data for your Azure Kubernetes Service (AKS) cluster.
44
author: nickomang
55
ms.author: nickoman
@@ -11,7 +11,7 @@ ms.date: 11/06/2023
1111
#CustomerIntent: As a cluster operator, I want to obtain cost management information, perform cost attribution, and improve my cluster footprint
1212
---
1313

14-
# Azure Kubernetes Service cost analysis (preview)
14+
# Azure Kubernetes Service cost analysis
1515

1616
An Azure Kubernetes Service (AKS) cluster is reliant on Azure resources like virtual machines, virtual disks, load-balancers and public IP addresses. These resources can be used by multiple applications, which could be maintained by several different teams within your organization. Resource consumption patterns of those applications are often nonuniform, and thus their contribution towards the total cluster resource cost is often nonuniform. Some applications can also have footprints across multiple clusters. This can pose a challenge when performing cost attribution and cost management.
1717

@@ -31,7 +31,6 @@ To address this challenge, AKS has integrated with MCM to offer detailed cost dr
3131

3232
The AKS cost analysis addon is built on top of [OpenCost](https://www.opencost.io/), an open-source Cloud Native Computing Foundation Sandbox project for usage data collection, which gets reconciled with your Azure invoice data. Post-processed data is visible directly in the [MCM Cost Analysis portal experience](/azure/cost-management-billing/costs/quick-acm-cost-analysis).
3333

34-
[!INCLUDE [preview features callout](./includes/preview/preview-callout.md)]
3534

3635
## Prerequisites and limitations
3736

@@ -45,12 +44,12 @@ The AKS cost analysis addon is built on top of [OpenCost](https://www.opencost.i
4544

4645
* If using the Azure CLI, you must have version `2.44.0` or later installed, and the `aks-preview` Azure CLI extension version `0.5.155` or later installed.
4746

48-
* The `ClusterCostAnalysis` feature flag must be registered on your subscription.
49-
5047
* Kubernetes cost views are available only for the following Microsoft Azure Offer types. For more information on offer types, see [Supported Microsoft Azure offers](/azure/cost-management-billing/costs/understand-cost-mgt-data#supported-microsoft-azure-offers).
5148
* Enterprise Agreement
5249
* Microsoft Customer Agreement
5350

51+
* Virtual nodes not supported at this time.
52+
5453

5554
### Install or update the `aks-preview` Azure CLI extension
5655

@@ -66,26 +65,6 @@ If you need to update the extension version, you can do this using the [`az exte
6665
az extension update --name aks-preview
6766
```
6867

69-
### Register the 'ClusterCostAnalysis' feature flag
70-
71-
Register the `ClusterCostAnalysis` feature flag by using the [az feature register][az-feature-register] command, as shown in the following example:
72-
73-
```azurecli-interactive
74-
az feature register --namespace "Microsoft.ContainerService" --name "ClusterCostAnalysis"
75-
```
76-
77-
It takes a few minutes for the status to show *Registered*. Verify the registration status by using the [az feature show][az-feature-show] command:
78-
79-
```azurecli-interactive
80-
az feature show --namespace "Microsoft.ContainerService" --name "ClusterCostAnalysis"
81-
```
82-
83-
When the status reflects *Registered*, refresh the registration of the *Microsoft.ContainerService* resource provider by using the [az provider register][az-provider-register] command:
84-
85-
```azurecli-interactive
86-
az provider register --namespace Microsoft.ContainerService
87-
```
88-
8968
## Enable cost analysis on your AKS cluster
9069

9170
Cost analysis can be enabled during one of the following operations:
@@ -119,10 +98,18 @@ az aks update --name myAKSCluster --resource-group myResourceGroup --disable-cos
11998
12099
## View cost information
121100

122-
You can view cost allocation data in the Azure portal. To learn more about how to navigate the cost analysis UI view, see the [Cost Management documentation](/azure/cost-management-billing/costs/view-kubernetes-costs).
101+
You can view cost allocation data in the Azure portal. To learn more about how to navigate the cost analysis UI view, see the [Cost Management documentation](/azure/cost-management-billing/costs/view-kubernetes-costs).
123102

124103
> [!NOTE]
125-
> It might take up to one day for data to finalize
104+
> It might take up to one day for data to finalize.
105+
106+
### Cost definitions
107+
In the Kubernetes namespaces and assets views you will see the following charges:
108+
- **Idle charges**: This represents the portion of resource allocation costs that are not allocated to any workload.
109+
- **Service charges**: This represents the charges for the SLA meter.
110+
- **System charges**: This represents the cost of capacity reserved by AKS on each node to run system processes required by the cluster, including the kubelet and container runtime. [Learn more](./concepts-clusters-workloads.md#resource-reservations).
111+
- **Unallocated charges**: This represents the cost of resources that could not be allocated to namespaces.
112+
126113

127114
## Troubleshooting
128115

@@ -133,3 +120,6 @@ See the following guide to troubleshoot [AKS cost analysis add-on issues](/troub
133120
[az-feature-register]: /cli/azure/feature#az_feature_register
134121
[az-feature-show]: /cli/azure/feature#az_feature_show
135122
[az-extension-update]: /cli/azure/extension#az-extension-update
123+
124+
## Learn more
125+
Visbility is one element of cost management. Refer to [Optimize Costs in Azure Kubernetes Service (AKS)](./best-practices-cost.md) for additional best practices on how to gain control over your kubernetes cost.

0 commit comments

Comments
 (0)