This topic describes billing examples for Managed Service for Prometheus instances and container monitoring.
Managed Service for Prometheus instances
A Managed Service for Prometheus instance in the Singapore region is running with the following parameters:
Scrape jobs:
Basic metrics: 1 job (1 target, 200 metrics per target)
Custom metrics: 1 job (2 targets, 500 metrics per target)
Size of a single sample: 0.5 KB
Scraping interval: 15 seconds
Retention: 90 days (hot storage) + 90 days (archival storage)
NoteArchival storage costs accumulate over time, with the following formulas accounting for a total retention period of 180 days.
Example 1: By remote-write data volume
Data ingestion fee
Daily ingested volume (GB, rounded to 1 decimal place) = Scrape jobs × Targets per job × Metrics collected for each target × (Seconds per day/Scraping interval) × Size of a single sample
Basic metrics: 1 × 1 × 200 × (86,400/15) × 0.5 KB = 576,000 KB ≈ 0.5 GB
Custom metrics: 1 × 2 × 500 × (86,400/15) × 0.5 KB = 2,880,000 KB ≈ 2.7 GB
Monthly ingestion fee:
Basic metrics: USD 0
Custom metrics: (2.7 GB per day × 30 days per month − 50 GB free quota) × USD 0.087 per GB = USD 2.697
Monthly total ingestion fee = USD 0 monthly basic metric data billed + USD 2.697 monthly custom metric data billed = USD 2.697
Data retention fee
(0.5 GB daily basic metric data ingested + 2.7 GB daily custom metric data ingested) × 90 retention days × USD 0.00022 per GB × 30 days per month = USD 1.9008
Monthly cost
USD 2.697 monthly ingestion fee + USD 1.9008 data retention fee = USD 4.5978
Example 2: By metric sample count
Data ingestion fee
Daily ingested data entries = Scrape jobs × Targets per job × Metrics collected for each target × (Seconds per day/Scraping interval)
Basic metrics: 1 × 1 × 200 × (86,400/15) = 1,152,000
Custom metrics: 1 × 2 × 500 × (86,400/15) = 5,760,000
Monthly ingestion fee:
Basic metrics: USD 0
Custom metrics: 5,760,000/1,000,000 × USD 0.176 × 30 days per month = 6 (rounded to the nearest integer) × USD 0.176 × 30 days per month = USD 31.68
Monthly total ingestion fee = USD 0 monthly basic metric data billed + USD 31.68 monthly custom metric data billed = USD 31.68
Data retention fee
Daily retained volume (GB, rounded to 1 decimal place): (Daily ingested basic metric data entries + Daily ingested custom metric data entries) × Size of a single sample × Retention days
(1,152,000 + 5,760,000) × 0.5 × 90 = 311,040,000 KB ≈ 296.6 GB
Monthly retention fee: 296.6 GB retained per day × USD 0.00022 per GB × 30 days per month = USD 1.95756
Monthly cost
USD 31.68 monthly ingestion fee + USD 1.95756 data retention fee = USD 33.63756
Container monitoring
Your resources in the Singapore region are running with the following parameters:
Container Service for Kubernetes (ACK) cluster: 1 cluster with 50 nodes, Container Monitoring Pro Edition activated
Managed Service for Prometheus instance:
Metrics:
Basic metrics: default metrics for the ACK cluster
Custom metrics: 1 job (2 targets, 500 metrics per target)
Size of a single sample: 0.5 KB
Scraping interval: 15 seconds
Retention: 90 days (hot storage)
Cluster scale fee
Monthly monitoring fee = Nodes in the cluster/10 × Unit price per Observability Capacity Unit (OCU) × Hours per month = 50/10 × 0.033 × 24 × 30 = USD 118.8
Managed Service for Prometheus instance fee
Suppose you are charged by remote-write data volume:
Monthly instance fee = USD 2.697 data ingestion fee + USD 0 data retention fee = USD 2.697
Monthly cost
USD 118.8 cluster scale fee + USD 2.697 Managed Service for Prometheus instance fee = USD 121.497