Raise tag coverage and keep it up
Measure how much of your cost is tagged, state the tag keys a workspace's cost must carry, follow the untagged cost to its owners and get told when coverage slips.
By the end of this guide, you know how much of your cost carries tags, the workspace states the keys its cost must carry, the untagged cost has a report that names where it sits, and an alert tells you when coverage slips. It is for the platform engineer or engineering lead who owns tagging, and for the admin who sets up the cloud accounts. The path goes from reading coverage, through fixing what the provider leaves out and stating a policy, to keeping it in place as code. Each step links to the page that owns the detail.
Before you start
- At least one connection with some history; see Quickstart.
- Setting the tag policy, a virtual tag or a coverage alert needs edit access to the workspace; see Access model.
- Steps 1, 3 and 4 work on the sample data a new organization starts with, whose
team,product,environmentandcost-centertags cover part of its cost. Step 2 needs an AWS connection, and nothing is sent from the sample data, so the schedule in step 3 and the alert in step 5 need a real connection.
1. Read your coverage
Open Insights and read the "Tag coverage" card: "Overall coverage" is the share of cost on resources that carry at least one tag, beside "Tagged spend" and "Untagged spend", and "Top tag keys" names the keys carrying the most cost with their costliest values. Allocation, then Tags, shows the same card for the workspace and marks a key no virtual tag merges yet as "Worth promoting". AWS history read from Cost Explorer carries no tags, and the card names those months. See Tags and tag coverage.
2. Activate your AWS cost allocation tags
On AWS, a tag reaches Costfluent only once it is activated as a cost allocation tag in AWS Billing and Cost Management, from the management account in an AWS Organization, and only for cost from activation on. Until then the key is missing under Allocation, then Tags, and its cost counts as untagged. Activate the keys you allocate by, and ask AWS to backfill earlier months where you need them. See Connect AWS.
3. Set a tag policy and follow the untagged cost
In the Tag policy card under Allocation, then Tags, select "Add rule", pick the keys under Required tag keys, such as team and environment, and select "Save tag policy". The first rules create the report "Untagged cost by account", the cost missing a required key, grouped by account. Group it by segment instead to see each owner's share, filter any report on Tag compliance, and schedule the policy's report weekly to the team's email channel. Costfluent measures your tags against the policy and changes nothing in your cloud accounts. See Tags and tag coverage and Share and schedule reports.
4. Fill the gaps with a virtual tag
Where the same meaning is spread over several keys or spellings, or a resource is untagged but its owner is obvious, enable the team or environment template under Templates, or create a virtual tag that reads your keys in order, merges spellings with a Value map and gives the rest a value with rules. Check its Preview until "Unmatched" is small. A virtual tag gives reports an owner for that cost, while the coverage figure keeps counting the tags your resources carry, so it rises only as the tags are fixed at the source. See Virtual tags.
5. Set a coverage alert
On the "Tag coverage" card of Insights, select Set alert, set the Coverage threshold, and pick a notification channel under Send to. Once the workspace has a tag policy, the alert measures the share of cost carrying every required key instead of any tag, and its dialog says which measure applies. See Tags and tag coverage and Alerts.
6. Keep the policy in Terraform
The Terraform resource costfluent_tag_policy holds a workspace's tag policy, so the required keys are reviewed and changed like the rest of your infrastructure code. A policy you built in the product comes under Terraform by importing it with the workspace's ID. See Terraform.
Check the result
- "Overall coverage" on the "Tag coverage" card has risen since step 1. As a yardstick, the FinOps Foundation's maturity model gives sample goals of allocating at least 70% of cost to a known owner at Crawl, at least 85% at Walk and more than 90% at Run.
- The Tag policy card lists your rules, and the report "Untagged cost by account" names the accounts still missing a required key.
- The virtual tag's Preview shows a small "Unmatched".
- The Alerts page lists the coverage alert under Configured alerts as Low tag coverage.
Keep it true
- New resources arrive untagged. Costfluent recommends reading the policy's weekly report and the "Tag coverage" card at every cost review, and asking the owner of each account it names to tag at the source.
- A change made in the product to a policy Terraform manages shows as drift on the next plan, so change the policy in code once it is there.
From your assistant
With the Costfluent MCP server connected, your assistant answers these with query_costs.
Code
Code
Related
- Tags and tag coverage and Virtual tags
- Tagging policy template, to agree the keys and values before you require them
- Showback for teams