Managed Service for Prometheus is billed on a pay-as-you-go basis. You are charged only for the metric data that you ingest and store.
Billing overview
Charges are based on two cost dimensions:
|
Cost dimension |
Description |
|
Data ingestion |
The volume of metric data written to your instance, billed by ingestion data volume or by ingestion metric sample count. |
|
Data retention |
The cost of storing metric data in hot storage and archival storage. |
You select a billing mode during instance creation. Each instance allows only one billing mode change.
Compare billing modes
The following table compares the two billing modes:
|
|
By ingestion data volume |
By ingestion metric sample count |
|
Billing unit |
GB of uncompressed metric data |
Samples (data points) |
|
Free ingestion quota |
50 GB/month per account in the first activated region |
500,000 metrics/day per instance |
|
Free hot storage |
30 days |
90 or 180 days, depending on the pricing option |
|
Hot storage extension |
Not supported |
Supported |
Free quotas
Free quotas apply to data ingestion and hot storage. Archival storage is always charged.
Basic metrics
Basic metrics are built-in metrics from integrated Alibaba Cloud services. Ingestion is free.
|
Integrated service |
Free hot storage period |
|
Container services - Basic Edition |
7 days |
|
Container services - Pro Edition |
90 days |
|
Managed Service for Prometheus |
90 days |
|
Realtime Compute for Apache Flink |
15 days |
Custom metrics
Custom metrics are user-defined metrics sent to your instance through the remote write API. Free quotas depend on the billing mode:
|
Billing mode |
Free ingestion quota |
Free hot storage period |
|
By ingestion data volume |
50 GB/month per account in the first activated region |
30 days |
|
By ingestion metric sample count |
500,000 metrics/day per instance |
90 or 180 days, depending on the pricing option |
Pricing
Data ingestion
By ingestion data volume
Charges are calculated based on the volume of uncompressed metric data written to your instance through the remote write API.
Billing formula:
Daily ingestion fee = (Daily custom metric data written - Remaining monthly free quota) x Unit price per GB
Written data is billed in 0.1 GB increments. Daily totals under 0.1 GB are billed as 0.1 GB; totals above 0.1 GB are rounded to one decimal place.
By ingestion metric sample count
Charges are calculated based on the number of samples (data points) written to your instance.
Billing formula:
Daily ingestion fee = (Daily custom metric samples / 1,000,000, rounded) x Tiered unit price
Data retention
Hot storage
Hot storage keeps recent metric data available for queries.
-
With by ingestion data volume billing, hot storage defaults to 30 days and cannot be extended.
-
With by ingestion metric sample count billing, hot storage is billed by stored data volume after the free period expires.
Hot storage fee: per million samples stored per day
Archival storage
Archival storage retains metric data beyond the hot storage period.
Billing formula:
Daily archival storage fee = Daily archived uncompressed metric data (GB) x Unit price per GB
Billing examples
The following examples assume a Prometheus instance deployed in the Singapore region with these parameters:
|
Parameter |
Value |
|
Basic metrics: scrape jobs |
1 job, 1 target, 200 metrics per target |
|
Custom metrics: scrape jobs |
1 job, 2 targets, 500 metrics per target |
|
Size of a single sample |
0.5 KB |
|
Scraping interval |
15 seconds |
|
Hot storage retention |
90 days |
|
Archival storage retention |
90 days |
Archival storage costs accumulate over time. The following formulas assume a total retention period of 180 days (90 days of hot storage + 90 days of archival storage).
Example 1: By ingestion data volume
Step 1: Calculate daily ingested volume
Daily ingested volume = 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
-
Custom metrics: 1 x 2 x 500 x (86,400 / 15) x 0.5 KB = 2,880,000 KB = 2.7 GB
Step 2: Calculate monthly ingestion fee
|
Metric type |
Calculation |
Monthly fee |
|
Basic metrics |
Free (unlimited ingestion) |
USD 0 |
|
Custom metrics |
(2.7 GB/day x 30 days - 50 GB free quota) x USD 0.087/GB |
USD 2.697 |
|
Total ingestion |
USD 2.697 |
Step 3: Calculate monthly data retention fee (archival storage)
Archival storage fee = (0.5 + 2.7) GB/day x 90 days x USD 0.00022/GB x 30 days = USD 1.9008
Monthly total
|
Cost component |
Amount |
|
Data ingestion |
USD 2.697 |
|
Data retention (archival storage) |
USD 1.9008 |
|
Monthly total |
USD 4.5978 |
Example 2: By ingestion metric sample count
Step 1: Calculate daily ingested samples
Daily ingested 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
-
Custom metrics: 1 x 2 x 500 x (86,400 / 15) = 5,760,000 samples
Step 2: Calculate monthly ingestion fee
|
Metric type |
Calculation |
Monthly fee |
|
Basic metrics |
Free (unlimited ingestion) |
USD 0 |
|
Custom metrics |
5,760,000 / 1,000,000 = 6 (rounded) x USD 0.176 x 30 days |
USD 31.68 |
|
Total ingestion |
USD 31.68 |
Step 3: Calculate monthly data retention fee
Daily retained volume:
(1,152,000 + 5,760,000 samples) 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
Monthly total
|
Cost component |
Amount |
|
Data ingestion |
USD 31.68 |
|
Data retention (archival storage) |
USD 1.95756 |
|
Monthly total |
USD 33.63756 |
Activate the service
Activate the service by selecting or .