What you see out of the box
With no extra configuration, Thoras estimates cost from a built-in static price list. It discovers your nodes, matches each instance type to its on-demand price, and averages across the cluster to get a cost-per-core-hour and cost-per-GB-hour. When it recommends smaller requests for a workload, the difference is your projected savings. These estimates are directional. They answer “how much over-provisioned compute could we reclaim?” rather than “how much will our AWS bill drop?” They do not account for:- Savings Plans or Reserved Instances
- Committed use discounts (GCP)
- Custom or negotiated pricing
- Spot price fluctuations (Thoras uses published average discounts)
Overriding the baseline
If you know your blended rate (for example, you pay an effective $0.12/hour per node after Savings Plans), you can override the average node cost in the dashboard cluster settings. This brings estimates closer to your actual spend without any AWS integration. See Overriding Average Node Cost.The fidelity ladder
Each level adds accuracy. Pick the one that matches how precise you need cost reporting to be.
You can adopt them independently. CUR 2.0 does not require Cost Explorer, and
cost alerts work with estimated cost alone. That said, Cost Explorer is the
simplest step up from baseline, and CUR 2.0 gives the highest fidelity.
Level 1: AWS Cost Explorer
Cost Explorer replaces the static price list with what AWS actually billed you. The figures on the dashboard then match your invoice at the cluster level, broken down by service and usage type for each day.What changes
- The cost graph shows billed cost instead of estimates.
- Savings Plans, Reserved Instances and negotiated rates are reflected in the cost graph, because the numbers come from your bill. Billing calibration applies to EC2 workloads; Fargate savings still use regional on-demand rates (see Cost Estimates).
- Collection runs nightly. The first run backfills 90 days; each run after that re-fetches the last 7 days to pick up AWS restatements.
How it works
The Thoras worker calls the AWS Cost Explorer API with your cluster’s cost allocation tag as a filter. That tag tells AWS “show me only the spend for this cluster.” The worker stores each day’s cost by service and usage type in its local database.Cost allocation tags
AWS automatically tags EKS resources withaws:eks:cluster-name, but Cost
Explorer ignores tags that have not been activated in the Billing console. If
the tag is not activated, queries succeed and return zero rows. Activation can
take up to 24 hours. This is the most commonly missed step.
How the worker gets AWS credentials
The worker needs an IAM role with one permission:ce:GetCostAndUsage. You bind
the role to the worker’s service account (thoras-worker) with one of two
methods:
- IRSA (IAM Roles for Service Accounts): Requires an OIDC provider on your EKS cluster. You annotate the service account with the role ARN. The kubelet mounts token files into the pod, and the AWS SDK exchanges them for credentials automatically.
- EKS Pod Identity: Requires the Pod Identity Agent add-on. You create a pod identity association between the role and the service account. No annotation needed. Does not work on Fargate nodes.
Quick start
- Create an IAM role with
ce:GetCostAndUsagepermission, trusted by your worker’s service account. - Activate the
aws:eks:cluster-namecost allocation tag in the Billing console. - Set the Helm values:
- Run
helm upgrade.
Console mode
If your clusters report to a self-hosted Thoras console, the console can call Cost Explorer for all of them with one AWS role. Each cluster’s worker sends its queries to the console instead of calling AWS directly. The console scopes every query to that cluster’s approved cost allocation tag and account. This means you create one IAM role on the console instead of one per cluster. On each tenant cluster, the values are:Level 2: AWS Cost and Usage Report (CUR 2.0)
Cost Explorer shows what your cluster cost. CUR 2.0 shows what each AIScaleTarget’s pods cost, because AWS splits each node’s cost between the pods that ran on it.What changes
- A Billed cost tab appears on the dashboard, showing cost per AIScaleTarget, per namespace, by day or hour.
- Cost comes directly from your AWS invoice, split to the pod level.
- Cost alerts with a scope use this data for the highest accuracy.
How it works
AWS delivers a CUR 2.0 Data Export as Parquet files in an S3 bucket. With split cost allocation data enabled for EKS, each row that represents a pod carries tags identifying its namespace, workload type and workload name. The Thoras worker reads these files, filters for rows belonging to your cluster, and matches each pod’s cost to its AIScaleTarget. The worker reads the report every 6 hours and stores up to 14 months of history.CUR data always includes tags regardless of whether the cost allocation tag is
activated in the Billing console. Activation matters for Cost Explorer, not
for CUR.
Prerequisites
In your AWS management (payer) account:- Turn on split cost allocation data for Amazon EKS.
- Create a CUR 2.0 Data Export with: resource IDs, split cost allocation data, hourly granularity, Parquet format and “overwrite existing” versioning.
- Note the S3 bucket, path prefix and export name.
s3:ListBucket on the bucket and s3:GetObject on the export
path. If the export is in a different account (usually the payer account), you
either add a bucket policy or set curRoleArn so the worker assumes a role in
that account.
Quick start
helm upgrade. The worker reads the report on startup.
For the full setup, including cross-account access patterns, network policy
configuration and troubleshooting, see
AWS Cost and Usage Report.
Requires chart version
5.12.0 (platform 4.132.0).Cost alerts
Cost alerts send a Slack message when a day’s, week’s or month’s cost crosses a threshold you set. They work with any cost source:Quick start
helm upgrade, then create rules on the dashboard’s Alerts tab.
For rule configuration, alert timing, the Slack message format and
troubleshooting, see Cost Alerts.
Requires chart version
5.8.2 (platform 4.129.1).
