Kubecost Cloud uses an agent to gather metrics and send them to an S3 bucket.
The agent requires two 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.