This topic describes how to view the billing details and resource consumption of Prometheus Service. This topic also describes how to reduce costs by discarding custom metrics that you no longer need.

View billing details

  1. Log on to the Billing Management console.
  2. In the left-side navigation pane, choose Spending Summary > Spending Summary.
  3. On the Bills page, click the Bills tab.
  4. On the Bills tab, set the Billing Cycle, Account, and Order/Bill No. filters. Then, click Search.
  5. In the bill list, click the Filter icon next to Product Name and select Application Real-Time Monitoring Service. Then, click the Filter icon next to Product Detail and select Prometheus. The bills of Prometheus Service are displayed.

    In the bill list, you can click the Filter icon next to Subscription Type, Item, and Status, and select the required options to further filter your bills.

View resource consumption

If you have activated Prometheus Service Pro Edition, you can view resource consumption in the Prometheus Service console. You can set filters to view the resources consumed by a specified Prometheus instance or all Prometheus instances within a specified period of time.

  • View the resource consumption of all Prometheus instances
    1. Log on to the ARMS console.
    2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
    3. On the Prometheus Monitoring page, click Resource Consumption.
    4. In the Resource Consumption section, set the Time Interval and Time Range filters, and then click Query. The resource consumption of all your Prometheus instances is displayed.
      Note
      • The y-axis represents the number of custom metrics that are reported to Prometheus Service.
      • When you move the pointer over a column for a specific time range, the total number of custom metrics and the number of custom metrics consumed by a Prometheus instance over the time range are displayed.
  • View the resource consumption of a specified Prometheus instance
    1. Log on to the ARMS console.
    2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
    3. On the Prometheus Monitoring page, click Resource Consumption.
    4. In the Resource Consumption section, set the Instance, Task, Metric, Time Interval and Time Range filters, and then click Query. The resource consumption of the specified Prometheus instance is displayed. sc_application_resource_consumption_statistics
      Note
      • The y-axis represents the number of custom metrics that are reported to Prometheus Service.
      • When you move the pointer over a column for a specific time range, the total number of custom metrics or the number of custom metrics consumed by a single task over the time range is displayed.
    5. Click View All Metrics next to Query. You are redirected to the Metrics tab of the Settings page. On this tab, you can view all metrics of the Prometheus instance. For more information, see View the metrics of a Prometheus instance that monitors an ACK cluster.

Deprecate metrics

If you no longer want your Prometheus instance to monitor the data of some custom metrics, you can deprecate these custom metrics to avoid unnecessary costs. You are not charged for deprecated custom metrics.

Note You cannot deprecate metrics for a Prometheus instance that monitors cloud services.
  1. Log on to the ARMS console .
  2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
  3. In the upper-left corner of the page, select the region where the Prometheus instance resides. Then, click the name of the Prometheus instance.
  4. In the left-side navigation pane, click Service Discovery.
  5. On the page that appears, click the Metrics tab. Perform the following operations to deprecate custom metrics based on your business requirements.
    • To deprecate one custom metric, perform the following steps:
      1. Find the custom metric that you want to deprecate and click Deprecate in the Actions column.
      2. In the Configure Deprecated Metrics message, click OK.
    • To deprecate multiple custom metrics, perform the following steps:
      1. In the upper-right corner of the page, click Configure Deprecated Metrics.
      2. In the Configure Deprecated Metrics dialog box, enter the names of the metrics that you want to deprecate and click OK.
    • Deprecate all custom metrics
      1. In the lower-left corner of the page, click All Discard.
      2. In the message that appears, click OK.
Note For more information about how to deprecate metrics for a self-managed Kubernetes cluster, see Drop Prometheus metrics.