1. Estimating Energy
Calculates per-pod energy consumption (Joules) using Prometheus metrics and cloud instance power profiles based on the Cloud Carbon Footprint methodology.
GreenKube is an open-source FinGreenOps tool designed to help DevOps, SRE, and FinOps teams measure, understand, and reduce the carbon footprint and costs of their Kubernetes infrastructure.
It combines FinOps (financial optimization) with GreenOps (environmental sustainability) into a unified platform that provides:
Cloud computing is responsible for approximately 2-4% of global CO₂ emissions — comparable to the airline industry. As organizations scale their Kubernetes infrastructure, they face two mounting challenges:
Most engineering teams have no idea how much CO₂ their Kubernetes workloads emit. Without measurement, there can be no meaningful reduction. Tech SMEs in particular lack access to dedicated carbon monitoring tools that are both affordable and easy to operate.
Studies show that 30-40% of cloud spending is wasted on idle, oversized, or poorly optimized resources. This waste translates directly into unnecessary carbon emissions.
GreenKube addresses both challenges simultaneously by:
1. Estimating Energy
Calculates per-pod energy consumption (Joules) using Prometheus metrics and cloud instance power profiles based on the Cloud Carbon Footprint methodology.
2. Tracking Carbon
Converts energy to CO₂e emissions using real-time grid carbon intensity data from Electricity Maps, with region-specific accuracy.
3. Optimizing Resources
Identifies optimization opportunities — zombie pods, oversized workloads, autoscaling candidates — with estimated savings in both cost and CO₂.
4. Reporting
Generates detailed reports by pod, namespace, and time period, exportable to CSV or JSON for easy integration with your existing tools.
| Role | Use Case |
|---|---|
| DevOps / SRE | Monitor cluster efficiency, identify wasteful workloads, right-size resources |
| FinOps | Optimize cloud costs with visibility into per-workload spending and recommendations |
| Engineering Managers / CTOs | Get high-level dashboards showing cost and carbon trends across the organization |
| Platform Engineers | Deploy a self-hosted monitoring stack with Helm, integrate with existing Prometheus/OpenCost |
| Sustainability-conscious teams | Track and reduce your infrastructure’s carbon footprint with concrete data |
GreenKube introduces the concept of FinGreenOps — the convergence of:
By combining these disciplines, teams can make decisions that are both cost-effective and environmentally responsible.
GreenKube estimates energy consumption using:
The carbon emission formula is:
CO₂e (grams) = Energy (kWh) × Grid Intensity (gCO₂e/kWh) × PUEWhere:
| Component | Technology |
|---|---|
| Backend | Python 3.10+, FastAPI, asyncio |
| Frontend | SvelteKit, ECharts, Tailwind CSS |
| Data Collection | Prometheus, OpenCost, Kubernetes API |
| Carbon Data | Electricity Maps API, Boavizta API |
| Storage | PostgreSQL, SQLite, Elasticsearch |
| Deployment | Helm Chart, Docker (multi-arch amd64/arm64) |
| CLI | Typer + Rich |
| Security | OWASP headers, SCRAM-SHA-256, read-only containers, Trivy CI scanning |
Ready to get started? Follow the guides below: