Add a showback rule that defines the metric, price, and counting method that the product uses to calculate cost.
- In the left navigation panel, select .
- Select Add Rule.
The Add Rule drawer opens.
- In the Name field, enter a name for the rule.
- Optional: From the Organization drop-down list, select the organization that the rule applies to.
- From the Kind drop-down list, select General or External.
- Optional: In the By Label field, select a label to restrict the rule to.
- For an external rule, select the Showback Credentials to use.
- In the Metric Name field, enter a valid Prometheus metric name.
- From the Type drop-down list, select Count or Sum.
- In the Price field, enter the price per counted unit.
- Optional: In the Project Alert Limit and Global Alert Limit fields, enter alert limits.
- 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.
- Select Add.