Menu

1 / 2

I built a CLI that tells you where your Kubernetes money burns

DEV Community·Ozlem·6 months ago
#uYxSp08z
#kubernetes#devops#opensource#cli#burn
Reading 0:00
15s threshold

Got tired of setting up dashboards just to answer "where does our K8s money go?"

So I built Burn — a CLI that shows you exactly which namespaces,pods, and load balancers cost what. One command, no agent, no dashboard.

## What it looks like

$ burn analyze --prometheus http://prometheus:9090

NAMESPACE PODS CPU REQ→USED COST/MO argocd 4 2.0 → 30m $56 amazon-cloudwatch 11 1.6 → 82m $44 kube-system 21 1.4 → 52m $41 ...and 7 more namespaces Idle (unallocated) $117 Total $350

COST BREAKDOWN Compute: $350 | Storage: $0 | LB: $16 Total: $367

Enter fullscreen mode

Exit fullscreen mode

argocd-dex-server requests 500m CPU, uses 0.12m. That's $14/month for 0.02% efficiency.

## Slack integration

It also works as a Slack bot. You just ask:

/burn ask "what should I do to save money"

Enter fullscreen mode

Exit fullscreen mode

shell

1. Switch to Spot — Save $277/mo 2. Rightsize argocd-dex-server (500m → 10m CPU) $ kubectl set resources deployment argocd-dex-server -n argocd --requests=cpu=10m 3.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.