Unable to segregate cost per client in AKS

Tanul 1,281 Reputation points
2020-09-17T16:28:38.443+00:00

Team,

We have a service hosted as a container inside AKS and it is accessible only through my organization. Now there are multiple teams of different verticals are using that API to get some data.

Whenever we make a call from my organization network to the AKS then ingress(nginx) logs only common organisation IP in every request. This is obvious because every organization has NAT registered in such a way.

Due to this issue, I'm unable to trace that which client is consuming how many resources hence difficulty in making a final cost balance sheet per client. The amount of key vault or container registry can still be considered as fixed. In addition, it could have been possible for azure bandwidth as well because I know the size of my payload but problem again arise while tracing the count of calls made by a specific client. So, confusion is there while calculating the chargeback for RAM or CPU consumed in AKS, Standard load balancer and Azure bandwidth.

Can you suggest few approaches using which I can setup the service in such a way that I can calculate the cost per client consuming the resources.

I would really appreciate if you share your valuable suggestion on the same.

Thank you

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,993 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,509 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,146 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
451 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
408 questions
{count} votes

Accepted answer
  1. Michael 91 Reputation points
    2020-09-24T13:35:28.187+00:00

    The common tool customers use right now is https://github.com/kubecost. That will allow you to segment cost from E2E within a Kubernetes Cluster.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.