Kubernetes Cost Analysis Script

In order to better understand and attribute cost of my Kubernetes cluster, I am looking for a script written in Perl (preferrable) or Golang that will run and query the cluster to report back on CPU, RAM, and DISK usage and allocation to all of the different pods, namespaces, etc, and breakdown the usage by namespace, pod, and any number and combination of labels.

This script can be scheduled to run at regular intervals to collect the metric data over time. This data (csv formatted output file) will be consumed by a separate process (not part of this project) to generate daily, weekly, monthly, etc usage reports.

I should be able to supply input parameters to run the script to target the entire cluster or a specific namespace, for example. And I should be able to also provide the format of the output such that I can specify the usage allocation broken down by a specific label (i.e. label=Team) or a combination of labels (i.e. label=Team and label=Environment).

It will then generate a csv file similar to:

Team,Environment,CPU,Memory,Disk,Total CPU, Total Memory, Total Disk


"CPU,Memory,Disk" indicate resources used by Team & Environment label and

"Total CPU, Total Memory, Total Disk" indicate total cluster resources

I also welcome your feedback and suggestion for improvement and clarification.

Znanja: Docker, Golang, Linux, Perl

Več: script refresh web page time open, perl script measure website loading time, script find windows login time, kubernetes faq, when not to use kubernetes, kubernetes in production, kubernetes capacity planning, kubernetes disadvantages, kubernetes problems, kubernetes production ready, kubernetes ephemeral storage, cost estimator script, estimate cost swoopocom script clone, cost analysis call centre seat, smoking cost calculator script, script online games real time, script multiple parameters dqy file excel, cost commerce script, ppt fpso cost analysis, domain analysis script

O delodajalcu:
( 0 mnenja ) Danville, United States

ID projekta: #17974530



Hello, I'm a professional backend programmer. I've been programming in Go for about 3 years. I've worked on distributed, microservice architectures for backend servers in the financial industry. I have some que Več

$444 USD v 2 dneh
(2 mnenj)

8 freelancerjev ponuja v povprečju za $594 na tem delu


Hello! if you want collect metrics from your cluster, you should use kibana and prometheus for it, dont use perl script - this is old solutions , it's not modern.

$722 USD v 5 dneh
(31 Ocen)

Can help You create such script, which collect/save your Kubernetes cluster stats into external cvs file (which can be run by crontab). Tnx and Regards.

$750 USD v 3 dneh
(26 Ocen)

Hi, I'm a perl expert, I can write your script. Just provide me some access to your cluster and i will start to write the first version. Then we will refine to obtain one that fits exacly your needs. sincer Več

$444 USD v 3 dneh
(5 Ocen)

I have experience with Docker, Linux, Kubernetes, containers, monitoring, task automation and metrics collection.

$722 USD v 12 dneh
(0 Ocen)
$555 USD v 10 dneh
(0 Ocen)

Hello, we would like to offer you cooperation on the project, according to your requirements. Please, contact us for more information. You can also find us at www.Pexxi.eu. Thanks and look forward to our cooperation.

$611 USD v 14 dneh
(0 Ocen)
$500 USD v 10 dneh
(0 Ocen)