This topic provides monthly cost estimates for Managed Service for Prometheus and Container Monitoring in the Singapore region. Use these examples to estimate costs for your own workloads.
Each monthly cost consists of two components:
Data ingestion fee -- based on the volume or count of metric samples written to Prometheus.
Data retention fee -- based on how much data is stored and for how long.
Basic metrics are not charged for data ingestion. Only custom metrics incur ingestion fees.
Managed Service for Prometheus
The following two examples use the same Prometheus instance but apply different billing methods. Compare both to determine which method applies to your workload.
Prometheus instance parameters
Parameter | Value |
Region | Singapore |
Basic metrics | 1 scrape job, 1 target, 200 metrics per target |
Custom metrics | 1 scrape job, 2 targets, 500 metrics per target |
Sample size | 0.5 KB |
Scraping interval | 15 seconds |
Retention | 90 days (hot storage) + 90 days (archival storage) |
Archival storage costs accumulate over time. The formulas below account for a total retention period of 180 days.
Free quota
Billing method | Free quota |
By remote-write data volume | 50 GB per month |
Example 1: Billed by remote-write data volume
In this example, ingestion is charged per GB of data written through remote write.
Data ingestion fee
First, calculate the daily ingested volume per metric type.
Formula:
Daily volume (KB) = Scrape jobs x Targets per job x Metrics per target x (86,400 / Scraping interval) x Sample size
Basic metrics:
1 x 1 x 200 x (86,400 / 15) x 0.5 KB = 576,000 KB = 0.5 GB/day
Custom metrics:
1 x 2 x 500 x (86,400 / 15) x 0.5 KB = 2,880,000 KB = 2.7 GB/day
Next, calculate the monthly ingestion fee.
Metric type | Calculation | Monthly fee |
Basic metrics | Not charged | USD 0 |
Custom metrics | (2.7 GB/day x 30 days - 50 GB free quota) x USD 0.087/GB | USD 2.697 |
Total | USD 2.697 |
Data retention fee
(0.5 GB + 2.7 GB) x 90 retention days x USD 0.00022/GB x 30 days = USD 1.9008/month
Monthly cost
Component | Cost |
Data ingestion | USD 2.697 |
Data retention | USD 1.9008 |
Total | USD 4.5978 |
Example 2: Billed by metric sample count
In this example, ingestion is charged per million metric samples written.
Data ingestion fee
First, calculate the daily number of ingested samples per metric type.
Formula:
Daily samples = Scrape jobs x Targets per job x Metrics per target x (86,400 / Scraping interval)
Basic metrics:
1 x 1 x 200 x (86,400 / 15) = 1,152,000 samples/day
Custom metrics:
1 x 2 x 500 x (86,400 / 15) = 5,760,000 samples/day
Next, calculate the monthly ingestion fee.
Metric type | Calculation | Monthly fee |
Basic metrics | Not charged | USD 0 |
Custom metrics | 5,760,000 / 1,000,000 = 6 (rounded) x USD 0.176/million samples x 30 days | USD 31.68 |
Total | USD 31.68 |
Data retention fee
Total retained volume:
(1,152,000 + 5,760,000) x 0.5 KB x 90 days = 311,040,000 KB = 296.6 GB
Monthly retention fee:
296.6 GB x USD 0.00022/GB x 30 days = USD 1.95756/month
Monthly cost
Component | Cost |
Data ingestion | USD 31.68 |
Data retention | USD 1.95756 |
Total | USD 33.63756 |
Container Monitoring
This example combines a Container Monitoring Pro Edition fee with a Managed Service for Prometheus instance fee for a Kubernetes workload.
Workload parameters
Parameter | Value |
Region | Singapore |
Container Service for Kubernetes (ACK) cluster | 1 cluster, 50 nodes |
Edition | Container Monitoring Pro Edition |
Basic metrics | Default metrics for the ACK cluster |
Custom metrics | 1 scrape job, 2 targets, 500 metrics per target |
Sample size | 0.5 KB |
Scraping interval | 15 seconds |
Retention | 90 days (hot storage) |
Cluster scale fee
The cluster scale fee is based on the number of nodes, measured in Observability Capacity Units (OCUs).
50 nodes / 10 x USD 0.033/OCU x 24 hours x 30 days = USD 118.8/month
Managed Service for Prometheus instance fee
Billed by remote-write data volume:
Component | Cost |
Data ingestion | USD 2.697 |
Data retention | USD 0 |
Subtotal | USD 2.697 |
Monthly cost
Component | Cost |
Cluster scale fee | USD 118.8 |
Prometheus instance fee | USD 2.697 |
Total | USD 121.497 |