- Introduction to Data
- Track your video performance
- Make API requests
- Setup alerts
- Make your data actionable with metadata
- Track autoplaying videos
- Extend Data with custom metadata
- Track CDN for request metrics
- See how many people are watching
- Build a custom integration
- Understand metric definitions
- Export raw video view data
- Mux Data FAQs
Track CDN for request metrics
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.
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. If you are not using one of the above players,
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.
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:
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
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.