Managed Service for Prometheus provides a Prometheus managed service and a container monitoring service. The Prometheus managed service incurs Prometheus instance fees, while Container Monitoring incurs container monitoring fees. This topic provides the billing examples of Prometheus instances and container monitoring.
Prometheus instance billing examples
Example 1: Pay-by-write-volume
Suppose you have a Prometheus instance in the China (Hangzhou) region with 2 scrape jobs. One job scrapes basic metrics and has 1 target, with each target containing 200 metrics. The other job scrapes custom metrics and has 2 targets, with each target containing 500 metrics. Both scrape jobs scrape data every 15 seconds. The Prometheus instance retains hot data for 90 days and archived data for 90 days.
Metric ingestion fee
Assume each sample is 0.5 KB in size. The calculation results will be rounded to one decimal place.
Daily Basic Metrics Write Volume = Number of jobs scraping basic metrics × Number of targets per job × Number of metrics per target × (Number of seconds per day/Scraping interval) × Size of each sample = 1 × 1 × 200 × (86,400/15) × 0.5 KB = 576,000 KB ≈ 0.5 GB
Daily Custom Metrics Write Volume = Number of jobs scraping custom metrics × Number of targets per job × Number of metrics per target × (Number of seconds per day/Scraping interval) × Size of each sample = 1 × 2 × 500 × (86,400/15) × 0.5 KB = 2,880,000 KB ≈ 2.7 GB
Monthly Basic Metrics Write Fee = 0 (Basic metrics write is free)
Monthly Custom Metrics Write Fee = ((Daily custom metrics write volume × Number of days per month) - Monthly free quota) × Unit price of custom metrics per GB = ((2.7 GB × 30) - 50 GB) × 0.062 = USD 1.922
Monthly Metrics Write Fee = Monthly basic metrics write fee + Monthly custom metrics write fee = 0 + 1.922 = USD 1.922
Archive storage fee
Monthly Archive Storage Fee = (Daily basic metrics write volume + Daily custom metrics write volume) × Archive storage retention period × Unit price of archive storage per GB × Number of days per month = (0.5 GB + 2.7 GB) × 90 × 0.00016 × 30 = USD 1.3824
Archive storage volume is cumulative. The calculation formula above assumes the cost after data has been stored for a total of 180 days (90 days in hot storage and 90 days in archive storage).
The trend of archive storage volume is illustrated below.
Monthly Total Cost = Metric ingestion fee + Metric storage fee = 1.922 + 1.3824 = USD 3.3044
Example 2: Pay-by-reporting-volume
Suppose you have a Prometheus instance in the China (Hangzhou) region with 2 scrape jobs. One job scrapes basic metrics and has 1 target, with each target containing 200 metrics. The other job scrapes custom metrics and has 2 targets, with each target containing 300 metrics. Both scrape jobs scrape data every 15 seconds. The Prometheus instance retains hot data for 30 days and archived data for 90 days.
Metric ingestion fee
Daily Basic Metrics Reporting Volume = Number of jobs scraping basic metrics × Number of targets per job × Number of metrics per target × (Number of seconds per day/Scraping interval) = 1 × 1 × 200 × (86,400/15) = 1,152,000
Daily Custom Metrics Reporting Volume = Number of jobs scraping custom metrics × Number of targets per job × Number of metrics per target × (Number of seconds per day/Scraping interval) = 1 × 2 × 300 × (86,400/15) = 3,456,000
Monthly Basic Metrics Reporting Fee = 0 (Basic metrics reporting is free)
Monthly Custom Metrics Reporting Fee = ((Daily custom metrics reporting volume - Daily free quota)/1,000,000) × Unit price of 1 million metrics × Number of days per month = ((3,456,000 - 500,000) / 1,000,000) × 0.126 × 30 = 3 (rounded to the nearest integer) × 0.126 × 30 = USD 11.34
Monthly Metrics Reporting Fee = Monthly basic metrics reporting fee + Monthly custom metrics reporting fee = 0 + 11.34 = USD 11.34
Archive storage fee
Assume each sample is 0.5 KB in size. The calculation results will be rounded to one decimal place.
Daily Archive Storage Volume = (Daily basic metrics reporting volume + Daily custom metrics reporting volume) × Size of each sample × Archive storage retention period = (1152,000 + 3,456,000) × 0.5 × 90 = 207,360,000 KB ≈ 197.8 GB
Monthly Archive Storage Fee = Daily archive storage volume × Archive storage unit price × Number of days per month = 197.8 × 0.00016 × 30 = USD 0.94944
Archive storage volume is cumulative. The calculation formula above assumes the cost after data has been stored for a total of 120 days (30 days in hot storage and 90 days in archive storage).
Monthly Archive Storage Fee = Daily archive storage volume × Archive storage unit price × Number of days per month = 197.8 × 0.00016 × 30 = USD 0.94944
Container monitoring billing examples
Example 1: Container Monitoring Pro Edition
Suppose you have created 1 Container Service for Kubernetes (ACK) cluster in the China (Hangzhou) region and activated Container Monitoring Pro Edition. The ACK cluster has a total of 50 nodes. In addition to collecting default container cluster basic metrics, this Prometheus instance also has 1 custom metrics scraping job. This custom job has 2 targets, with each target containing 500 metrics, and it scrapes data every 15 seconds. The Prometheus instance retains hot data for 90 days.
Cluster scale fee
Monthly Cluster Scale Fee = (Number of cluster nodes/10) × OCU unit price × Number of hours per day × Number of days per month = 50/10 × 0.023 × 24 × 30 = USD 82.8
Prometheus instance fees
Assume the Prometheus instance is billed based on write volume and each sample is 0.5 KB in size. The calculation results will be rounded to one decimal place.
Daily Custom Metrics Write Volume = Number of custom metrics jobs × Number of targets per job × Number of metrics per target × (Number of seconds per day/Scraping interval) × Size of each sample = 1 × 2 × 500 × (86,400/15) × 0.5 KB = 2,880,000 KB ≈ 2.7 GB
Monthly Basic Metrics Write Fee = 0 (Basic metrics write is free)
Monthly Custom Metrics Write Fee = ((Daily custom metrics write volume × Number of days per month) - Monthly free quota) × Unit price of custom metrics per GB = ((2.7 × 30) - 50) × 0.062 = USD 1.922
Monthly Metrics Write Fee = Monthly basic metrics write fee + Monthly custom metrics write fee = 0 + 1.922 = USD 1.922
Prometheus Instance Fee = USD 1.922
Monthly Total Cost = Cluster scale fee + Prometheus instance fee = 82.8 + 1.922 = USD 84.722