IBM Cloud Docs
Tracking usage and spend for projects

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

  1. Find the ID for a project.

    1. In the IBM Cloud console, go to the account that contains a project that you're managing billing for.
    2. Click the Navigation menu icon Navigation Menu icon > Projects and select a project.
    3. In the project, go to the Manage tab.
    4. 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.

  2. Get your usage report.

    1. In the IBM Cloud console, go to the enterprise account.
    2. Go to Manage > Billing and usage.
    3. Click View usage > Export CSV.
  3. Open the usage report.

  4. Go to the column service_tag::project::project_id.

  5. 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.