See how to configure your CDN so that Mux Data can collect network-level metrics.
Mux has the capability to track each network request made by the player, in order to expose network-level metrics such as throughput and latency measurements. In addition, Mux is able to inspect certain response headers, allowing auto-detection of the CDN that was used to serve each manifest, segment, or fragment. Enabling these auto-detection features requires some minor configuration at each of your CDNs.
This feature is available to customers with Pro subscriptions and higher.
Mux currently supports request metrics for the following players, with more being added as they are completed.
Simply integrate the player as mentioned in the player integration guide, and each network request will be tracked.
In order for Mux to automatically detect which CDN is serving the content to the player, you need to make a few configuration changes to each of your CDNs. These changes are necessary to expose two specific headers.
Header | Description |
---|---|
X-CDN | This is a custom header that you need to add to all responses from each of your CDNs. The value of this should be a name describing that specific CDN; you should lowercase the name and replace spaces with _ s. For example: fastly , cloudfront , level3 , etc. |
Access-Control-Expose-Headers | This should be set on each response, with the value being a comma-separated string of headers to expose to the client. At the least, you should set this to X-CDN . It is also suggested that you add other identifying headers that your CDN may use, such as X-Cache , X-Served-By , Via , or similar headers. More information on Access-Control-Expose-Headers , see here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers. |