Skip to main content

View Edge Network statistics in Grafana

The CDB Platform-EN data source connects Grafana to Edge Network statistics through a single plugin and query editor. Select a service — CDN, DNS, CDB EdgeCompute, or WAAP — then build time-series panels from the matching CDB APIs. Grafana 12.0.0 or higher and an API token are required.

The previous CDN-only plugin (cdn-stats / cdn-stats-datasource-plugin) is deprecated as of July 25, 2026. Migrate dashboards to CDB Platform-EN before that date.

Supported services:

  • CDN — delivery traffic, bandwidth, cache efficiency, and request statistics
  • DNS — authoritative DNS traffic per zone and record type
  • CDB EdgeCompute — application latency and performance metrics
  • WAAP — web application and API protection traffic and request analytics

Download and install the plugin

Install the unified plugin from the GitHub repository, then restart Grafana so it can load the data source.

  1. Download the latest gcore-stats-datasource-plugin.zip from the repository release folder.

  2. Extract the archive into the Grafana plugins directory. Default locations:

    • Linux/macOS: /var/lib/grafana/plugins
    • Windows: C:\Program Files\GrafanaLabs\grafana\data\plugins

    The plugin folder name must be gcore-stats-datasource-plugin.

  3. If Grafana blocks unsigned plugins, allow this plugin ID in the Grafana configuration file (custom.ini or grafana.ini):

    [plugins]
    allow_loading_unsigned_plugins = gcore-stats-datasource-plugin
    
  4. Restart Grafana and sign in.

Configure the data source

After installation, add CDB Platform-EN as a data source and authenticate it with a CDB API token.

  1. In the Grafana main menu, navigate to Connections > Data sources.

  2. Click Add new data source.

  3. Search for CDB and select CDB Platform-EN.

  4. Configure the connection fields:

    • URL — leave empty to use the default host, or enter a hostname only with no scheme or path — api.cdb-staging.cdn.orange.com.
    • API key — paste an API token from the CDB Technical Web Portal (Profile > API tokens > Create). The raw token is enough; the plugin adds the APIKey prefix when needed. A value that already includes APIKey or Bearer is also accepted.
  5. Click Save & Test.

A successful test confirms authentication with the account name. If the test fails, verify the token and that the URL is a hostname only.

Configure a dashboard

With the data source connected, create a panel and pick the Edge Network service to query.

  1. In the Grafana main menu, click + > Dashboard, then Add visualization.

  2. In the data source dropdown, select CDB Platform-EN.

  3. In the query editor, under Edge Network, select the Service: CDN, DNS, CDB EdgeCompute, or WAAP. The fields below update for that service.

  4. Configure the service-specific query fields, then click Apply to add the panel.

  5. Click Save dashboard, enter a name, and click Save.

The following sections describe the query fields for each service.

CDN

CDN queries cover delivery traffic, cache efficiency, and request or response trends. Metrics, granularity, and grouping match the CDN statistics API.

Metrics

Metric in the pluginDescription
total_bytesTotal traffic volume: origin to CDN or Shielding, Shielding to CDN, and CDN to users
cache_hit_traffic_ratioShare of cached traffic: 1 - (origin or Shielding traffic / CDN-to-user traffic)
sent_bytesEdges traffic: Shielding to CDN plus CDN to users
shield_bytesTraffic from Shielding to CDN
upstream_bytesOrigin traffic: origin to CDN or origin to Shielding
requestsNumber of requests to the CDN
responses_2xx, responses_3xx, responses_4xx, responses_5xxResponse counts by status class
bandwidthBandwidth derived from total traffic
cache_hit_requests_ratioShare of responses served from cache
shield_traffic_ratioShielding efficiency: (Shielding-to-CDN traffic - origin-to-Shielding traffic) / Shielding-to-CDN traffic
image_processedNumber of processed images

Granularity: 5m, 15m, 1h, or 1d.

Group by: resource, client, region, country, dc (data center), or vhost (custom domain). Multiple groupings can be selected.

Filters (comma-separated): optional Vhosts, Resources, Clients, Regions, and Countries fields narrow the series.

Legend Format: by default the legend uses the group-by values and metric name. Customize it with placeholders in double curly braces that match the selected grouping — Traffic — {{resource}}.

DNS

DNS queries show authoritative traffic across zones and record types so query volume and load can be monitored per zone.

  • Zone — a specific zone, or All Zones
  • Granularity5m, 10m, 15m, 30m, 1h, 1.5h, 2h45m, or 24h
  • Record typeALL, A, AAAA, NS, CNAME, MX, TXT, SVCB, or HTTPS
  • Legend Format — optional series label template

CDB EdgeCompute

CDB EdgeCompute queries expose application duration metrics so latency can be compared across apps and networks.

  • App — a specific application, or All
  • Metricavg, min, max, median, perc75, or perc90
  • Step — sampling interval in seconds
  • Network — optional network name filter
  • Legend Format — optional series label template

WAAP

WAAP queries surface protection traffic and request volume for protected domains over time.

  • Metrictotal_requests or total_bytes
  • Granularity1h or 1d
  • Legend Format — optional series label template

Dashboard variables

Dashboard variables can drive CDN filters so the same panel switches between resources, clients, or other dimensions without editing the query.

  1. Open dashboard settings (gear icon), go to Variables, and click Add variable.

  2. Configure the variable. For CDN resource filtering:

    • Name — variable name used in the query
    • Query type / Values for — select the CDN dimension exposed by the plugin (resource, client, vhost, region, country, or datacenter)
    • Optional Sort and Selection options (Multi-value, Include All option)
  3. Return to the dashboard and enter the variable in the matching CDN filter field with a $ prefix — $resource in Resources.

  4. Save the dashboard.

Grafana Alerting

Because CDB Platform-EN is a backend data source with alerting enabled, panel queries can back Grafana Alerting rules. Build a CDN, DNS, CDB EdgeCompute, or WAAP query, create an alert rule from it, and use Grafana expressions (Reduce, Math, Threshold) to turn the time series into a condition.