Tracking usage and spend for projects
As a billing or FinOps manager, you need to track spending for teams in your organization and bill them back for the resources that they deploy. ProjectsA collection of artifacts that define and manage resources and Infrastructure as Code deployments. help with accounting by ensuring that all resources that are associated with a project can be tracked back to the project with tagging and resource usage reports.
Resources in a project are automatically given service tags with the ID for the project and configuration that they're associated with. These tags are visible in usage reports or by using the command-line interface (CLI) or API. You can use these tags to filter your usage report and get a clear view of spending for projects. This way, it's easier to bill usage back to the teams that are deploying projects.
The services themselves exclusively manage service tags. Users can't add or remove service tags. For more information, see Tag types.
If you're just getting started, you might want to estimate architecture costs in a project.
Mapping resources on a usage report to a project
-
Find the ID for a project.
- In the IBM Cloud console, go to the account that contains a project that you're managing billing for.
- Click the Navigation menu icon > Projects and select a project.
- In the project, go to the Manage tab.
- Copy the ID and save it to reference later.
You can also use the following IBM Cloud CLI command to list all projects and their IDs:
ibmcloud project list --all-pages
. For more information, see the Project CLI reference. -
Get your usage report.
- In the IBM Cloud console, go to the enterprise account.
- Go to Manage > Billing and usage.
- Click View usage > Export CSV.
-
Open the usage report.
-
Go to the column
service_tag::project::project_id
. -
Sort the column to organize resources by project ID.
Add up the usage cost for each resource associated with a project ID to get the total spend for a project over a billing period.
You can use the ibmcloud resource search
command to retrieve the resources in a project based on the project
ID service tag.