Adding a showback rule

Add a showback rule that defines the metric, price, and counting method that the product uses to calculate cost.

  1. In the left navigation panel, select Manager > Showback Rules.
  2. Select Add Rule.

    The Add Rule drawer opens.

  3. In the Name field, enter a name for the rule.
  4. Optional: From the Organization drop-down list, select the organization that the rule applies to.
  5. From the Kind drop-down list, select General or External.
  6. Optional: In the By Label field, select a label to restrict the rule to.
  7. For an external rule, select the Showback Credentials to use.
  8. In the Metric Name field, enter a valid Prometheus metric name.
  9. From the Type drop-down list, select Count or Sum.
  10. In the Price field, enter the price per counted unit.
  11. Optional: In the Project Alert Limit and Global Alert Limit fields, enter alert limits.
  12. Optional: In the Labels section, select Add label, and then enter a Label and, optionally, a Label Value.

    Repeat for each label. To remove a label, select the X next to it.

  13. Select Add.
Figure 1. The Add Rule drawer

The Add Rule drawer
Figure 2. Choosing the rule kind

Choosing the rule kind
Figure 3. Choosing the rule type

Choosing the rule type
Figure 4. Adding a label to a rule

Adding a label to a rule