Using Cost-Tracking Tags

Cost-tracking tags are a legacy feature in the process of being fully deprecated. Cost-tracking tags are only relevant when you:

  • Set budgets

You can only use cost-tracking tag with defined tags. You cannot specify free-form tags as cost-tracking tags.

Working with Cost-Tracking Tags

Suppose you have a defined tag key definition called Finance.CostCenter. You enable this tag key definition for cost tracking. You apply the tag with a value of "W1" (Finance.CostCenter="W1") to some resources, and you apply the tag with a value of "C2" (Finance.CostCenter="C2") to other resources. These tags enables the following scenario: 

  • Create one budget for resources tagged "Finance.CostCenter=W1" and a second budget for resources tagged "Finance.CostCenter=C2". If spending surpasses a certain amount or is forecast to exceed a particular threshold, you can set up alerts that notify you.

Limits on Cost-Tracking Tags

  • You can have a maximum of 10 tag key definitions enabled for cost-tracking in your tenancy at a time. For example, you could enable the Project tag key as a cost-tracking tag and have 75 different departments, but it only takes up 1 tag.

Using the Console

You can enable cost-tracking when you create a tag key definition, or you can update an existing tag key definition to enable cost tracking.

To create a key definition
  1. Open the navigation menu. Under Governance and Administration, go to Governance and click Tag Namespaces.

    A list of the tag namespaces in your current compartment is displayed.

  2. Click the tag namespace you want to add the tag key definition to.

    A list of the tag key definitions that belong to the namespace is displayed.

  3. Click Create Tag Key Definition.
  4. Enter the following:
    • Tag Key: Enter the key. The key can be up to 100 characters in length. Tag keys are case insensitive and must be unique within the tag namespace.
    • Description: Enter a friendly description.
    • Cost-tracking: Select the check box to enable this tag for cost tracking. You have a limit of 10 Using Cost-Tracking Tags in your tenancy.
  5. Under Tag Value Type, choose one of the following:
    • Static Value: Specifies that the user applying the tag can specify any value for this key.
    • A List of Values: Specifies that the user must apply a value from a list you create. When you select this option, the Values box appears. Type the values from which the user can select. Separate multiple values with new lines. You must have at least one value. You can't have blank lines or duplicate values.
  6. Click Create Tag Key Definition.
To update a tag key definition
  1. Open the navigation menu. Under Governance and Administration, go to Governance and click Tag Namespaces.

    A list of the tag namespaces in your current compartment is displayed.

  2. Click the tag namespace that includes the tag key definition you want to update.

    A list of the tag key definitions is displayed.

  3. Click the tag key definition you want to update.

    The key definition's details are displayed.

  4. Click Edit Tag Key Definition.

    The edit dialog appears.

    You can change the description, the tag value type, and enable or disable cost tracking.

    If you chose a list of values, the Values box appears, and you must add at least one value. You can't have blank lines or duplicate values in the Values box.

    You have a limit of 10 Using Cost-Tracking Tags in your tenancy.

  5. Make your changes and save it.