- Total Requests — the number of HTTP requests processed by WAAP across protected domains within the selected time range.
- Total Bytes — the total volume of traffic, displayed in kilobytes (KB).
- 1h — one data point per hour.
- 1d — one data point per day.
The plugin requires Grafana 10.4.0 or higher.
Download and install the plugin
-
Get the plugin from the GitHub repository using either method:
- Clone the repository: run
git clone https://github.com/G-Core/waap-stats-datasource-plugin.gitin a terminal. - Download as ZIP: on the GitHub page, click Code > Download ZIP, then extract the archive.
- Clone the repository: run
-
Copy the
gcorelabs-waap-stats-datasourcefolder into the Grafana plugins directory. The default location is:- Linux/macOS:
/var/lib/grafana/plugins - Windows:
C:\Program Files\GrafanaLabs\grafana\data\plugins
- Linux/macOS:
- Restart Grafana to load the new plugin.
Configure the data source
After installing the plugin, add it as a data source in Grafana and authenticate it with a Gcore API token.- Log in to Grafana, then open the main menu and navigate to Connections > Data sources.
- Click Add new data source.
-
Search for
Waapand select the Waap plugin from Gcore. -
In the WAAP API section, fill in the configuration fields:
-
API URL (host only) — enter
api.gcore.com. Change this only if connecting to a dedicated or on-premises Gcore API endpoint. -
Authorization header value — enter the permanent API token generated in the Gcore Customer Portal. The value must include the
APIKeyprefix:
-
API URL (host only) — enter
- Click Save & Test.
A successful connection displays a confirmation message with the authenticated account name. If the test fails, verify that the API token is valid and includes the APIKey prefix.
Configure a dashboard
With the data source connected, create a dashboard panel to visualize WAAP metrics.- In the Grafana main menu, click + > New dashboard, then click Add visualization.
- In the Data source dropdown at the top of the query editor, select Waap.
-
In the query editor, configure the query:
- Metric — select the metric to display:
total_requests— renders the request count over time.total_bytes— renders traffic volume in KB over time.
- Granularity — select the time resolution:
1h— one data point per hour.1d— one data point per day.
- Metric — select the metric to display:
- Click Apply to add the panel to the dashboard.
- To save the dashboard, click Save dashboard in the upper-right corner, enter a name, and click Save.