Kubecost Cloud uses an agent to gather metrics and send them to an S3 bucket.
The agent requires 2 pods and an optional daemonSet:
- Kubecost Agent Pod
- Cost-model: provides cost allocation calculations and metrics, reads from and scraped by Prometheus server
- Prometheus Server Pod
- Prometheus server: short-term time-series data store (14 days or less)
- Thanos sidecar: ships metrics to Kubecost Cloud S3 bucket every 3 hours
- ConfigMap-Reload: updates prometheus when changes are made. Learn more here
- Network costs Daemonset
- (optional) used to allocate costs to the workload responsible for egress costs. Learn more here