Traffic metering - Anycast CDN [EN]
Metrics format
For plug-and-play integration with Grafana, Prometheus, etc., in addition to the Meth format, we have introduced a Prometheus-compatible metrics format for Content Delivery Networks.
Meth format
JSON-based format allowing for flexibility, but integration may require parsing or adapters. It provides a hierarchical, nested metrics structure with granular detail. This data format is optimized for internal use with custom applications, APIs, and BI tools.
Prometheus-compatible format
The Prometheus format uses a line-based text representation, allowing better compatibility. Metrics are provided in a key-value structure; each metric has associated labels and a value. It is simpler and easier to integrate with tools like Prometheus and Grafana, Alertmanager, Kubernetes Monitoring, OpenTelemetry, etc.
API Endpoint: /api/v1/metrics/cloud_store/prometheus
API documentation for metrics
Bandwidth by 95th percentile
This metering method is beneficial for users with more or less even traffic distribution throughout the month. If you experience traffic spikes, another metering approach might be preferable for you.
The channel load is logged every 5 minutes, adding up to 8640 values per month (30 days). The top 432 values (5%) are discarded, and out of the remaining 8208 values, the maximum value is taken into account.
By this bandwidth value, your monthly traffic is charged when calculating the bandwidth utilization by the 95th percentile.
Example:
If the top 5% of your monthly bandwidth logs are 30 Mbps, the maximum bandwidth of the remaining 95% is 10 Mbps, and all the logs below are 5 Mbps or less, you are charged 10 Mbps/month.
Per-gigabyte billing
The per-gigabyte billing system is based on the factual amount of your content distributed by the CDN in relation to the effective rates. This constitutes the amount you will be charged per month with per-gigabyte billing.
Example:
If a file of 1 GB is downloaded/watched once, you pay for 1 GB of traffic. If the same file gets 100 views, you are charged for 100GB of traffic.