---
title: "How to create AKAMAI CDN Mapping Dashboard"
slug: "how-to-create-akamai-cdn-mapping-dashboard"
updated: 2026-06-24T17:00:58Z
published: 2026-06-24T17:00:58Z
canonical: "docs.catchpoint.com/how-to-create-akamai-cdn-mapping-dashboard"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.catchpoint.com/llms.txt
> Use this file to discover all available pages before exploring further.
# How to create AKAMAI CDN Mapping Dashboard
#### Overview
The Akamai CDN Mapping dashboard is designed to provide insights into the performance and distribution of content delivery networks (CDNs). This guide will walk you through the steps to create insights, custom visualizations, favorite charts, and Playwright tests for the Akamai CDN Mapping dashboard.
#### Step 1: Create Insights
1. **Create Insights**: Begin by creating **tracepoint** for the Akamai CDN Mapping dashboard.
Name = **CDN Edge** and **Test City**
Token = **city** and **node**
Format = **city** and **HTTP_QUERY**

**Indicator**
Name = **Requests [Mapping]** and **Wait [Mapping]** Token = **numreq** and **wait** Format = **&numReq=(\d+)** and **&wait=(\d+)** Content Type = **Number** 
#### Step 2: Create Custom Visualization
- Navigate to **Synthetic > Custom Visualization > New**

1. **Add Scripts**: Add the following scripts to the script field:
```
```
```
```
### Step 3: Create the Test unless the Test already exists
- HTTP Test for the targeted CDN request/asset.

#### Step 4: Create Favorite Chart
1. **Create Favorite Chart**: Create a favorite chart for the test you want to have the mapping dashboard created.
- **Visualization**: Histogram
- **Dimension**: Test
- **Column**: City
- **Breakdown**: IP
- **Metrics**: Wait and #Runs

#### Step 5: Create Playwright Test
1. **Create Playwright Test**: Create a Playwright test with the below script – replace favorite chart ID and the API key.
```
const __translatedScript = async () => { // allow script to be at top for easy edits
await Catchpoint.startStep(`1. Access Token Generation`); /*** Step 1 ***/
// Step - 1
var __url = `http://edc.edgesuite.net/`;
var __response = await page.goto(__url);
var __result = Catchpoint$.runScript(
`var xhr = new XMLHttpRequest();xhr.open("POST", 'https://io.catchpoint.com/ui/api/token'); xhr.setRequestHeader("Accept", "*/*"); xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xhr.send("grant_type=client_credentials&client_id=Rn-s-jXLAuHCGCd&client_secret=150e1cd0-f6b6-401a-8e54-95a18926a6d1");`
);
await new Promise(resolve => setTimeout(resolve, Number(3000))); /* pause */
// Step - 2
await Catchpoint.startStep(`2. City Mapping`); /*** Step 2 ***/
await Catchpoint$.andWait(async _ => {
var __result = Catchpoint$.runScript(
`var json = JSON.parse(xhr.response);xhr.open("GET", 'https://io.catchpoint.com/api/v3.4/tests/explorer/favoritechart/data/55314'); xhr.setRequestHeader("Accept", "*/*"); xhr.setRequestHeader("Authorization", "Bearer REPLACE_WITH_API_KEY"); xhr.send();`
);
});
await new Promise(resolve => setTimeout(resolve, Number(2000))); /* pause */
var __result = Catchpoint$.runScript(
`var iMap = JSON.parse(xhr.response).data.favoriteCharts[0].summary;var xhr = new XMLHttpRequest();xhr.open("GET", 'http://edc.edgesuite.net/'); xhr.send();for(i=0; i setTimeout(resolve, Number(7000))); /* pause */
} // end of __translatedScript
```
1. Add the Tracepoints and Indicators created earlier to the Playwright Test’s Insight Section.

#### Step 6: Plot Results Using Custom Visualization
1. **Plot Results**: Plot the results for the above JS API test using custom visualization.
- **Disable**: Test Data
- **Enable**: Request Data and add filters to select the request – http://edc.edgesuite.net/
- **Dimensions**: Request
- **Column**: CDN Edge
- **Breakdown**: Test City
- **Plot for the indicators**: Wait[Mapping], Requests[Mapping]
