Search…
⌃K
Links

Kubecost Core Architecture Overview

Below are the major components deployed with the Kubecost helm chart, excluding certain Enterprise components such as durable storage:
  1. 1.
    Kubecost Cost-Analyzer Pod a. Frontend -- runs Nginx and handles routing to Kubecost backend + Prometheus/Grafana b. Cost-model -- provides cost allocation calculations and metrics, both reads and writes to Prometheus
  2. 2.
    Prometheus a. Prometheus server -- time-series data store for cost & health metrics b. Kube-state-metrics -- provides Kubernetes API metrics, e.g. resource requests [Optional] c. Node-exporter -- provides metrics for reserved instance recommendations, various Kubecost Grafana dashboards, and cluster health alerts [Optional] d. Pushgateway -- provides the ability for users to push new metrics to Prometheus [Optional] e. Alertmanager -- used for custom alerts [Optional]
  3. 3.
    Network costs -- used for determining network egress costs [Optional] - Learn more
  4. 4.
    Grafana -- provides supporting dashboards for Kubecost product [Optional]
Today, the core Kubecost product can be run with just components 1 and 2a.
See an overview of core components in this diagram:
Architecture Overview

Provider Pricing Architecture Overview

Kubecost interacts with provider pricing in a few different ways.
In an Enterprise federated setup, only the Primary Kubecost Cluster needs access to the Cloud Provider Billing.
Provider Pricing Overview

Enterprise Architecture Overview

The most common implementation of durable storage in the Kubecost application is with Thanos. Below is a high-level reference for the required components. More information on each Thanos component can be found here.
Thanos Overview