Skip to content

FinOps & Cost Analysis

KubeGlass computes cost estimates from cluster metrics - no external cost exporter required.

  • Per-namespace breakdown - CPU and memory requests, limits, and actual usage
  • Per-workload detail - Container-level resource consumption
  • Efficiency score - 0–100 score based on request-to-usage ratio

Costs are derived from:

  1. CPU and memory allocations (requests + limits) per container
  2. Actual usage from Prometheus or the Kubernetes Metrics API
  3. Configurable cost rates per CPU core and per GiB of memory

No cloud billing API integration is needed. The numbers reflect resource allocation efficiency, which is what platform teams can control.

Set custom cost rates via the Admin Settings panel or environment variables:

SettingDefaultExample
CPU cost per core/hour$0.031KUBEGLASS_COST_CPU_HOUR=0.031
Memory cost per GiB/hour$0.004KUBEGLASS_COST_MEM_HOUR=0.004
Storage cost per GiB/month$0.10KUBEGLASS_COST_STORAGE_MONTH=0.10

These rates are approximate and can be tuned to match your cloud provider’s pricing.

The efficiency score measures how well resources are used:

ScoreRatingMeaning
80–100ExcellentRequests closely match actual usage
60–79GoodMinor over-provisioning, room for optimization
40–59FairSignificant over-provisioning
0–39PoorMajor waste - most allocated resources are idle

The rightsizing engine flags three conditions:

FindingMeaning
Over-provisionedRequests are significantly higher than actual usage
Under-provisionedUsage regularly exceeds requests (risk of OOMKill or throttling)
Missing constraintsNo resource requests or limits set at all

Each finding includes a recommendation with suggested request/limit values based on observed usage patterns over the analysis window (default: 7 days).

  1. Collect usage metrics over the analysis window
  2. Compute P95 and P99 usage values for CPU and memory
  3. Recommend requests at P95 and limits at P99 with a configurable buffer (default: 20%)
  4. Flag containers where current requests differ from recommendations by more than 30%