Any API management tool requires the ability to view statistics – accurately and with details essential to the operation of APIs. WSO2 API Manager 2.0.0 introduces powerful analytics features along these lines by using the capabilities of WSO2 Data Analytics Server (WSO2 DAS), bringing all API, application and subscription related statistics to one location.
In order to help you make sense of these analytics, we’ve added the following graphs:
1.Published APIs Over Time
This graph can be used to check API creation rates. A user can check APIs based on the API provider or can view statistics related to all API providers.
2. API Latency
The API Latency breakdown graph can be used to check time consumption for each level in the message flow. It shows total time taken to handle a request and provides the time each component spends on that request – for example, a user can check the amount of time spent on the authentication process and so on. This graph is useful for identifying delays in the API.
3. API Usage Across Geo Locations
This graph provides statistics based on the location of the API request. It uses X-Forwarded-For header to identify the location of the user.
4. API Usage Across Usage Agent
This graph provides information related to the access mechanism of the API, and helps provide insight into the kind of devices and platforms used to access the API – mobiles, computers and so on.
We’ve also added an Applications Created Over Time graph under the Applications section. As with the API creation graph, this provides statistics related to application creation. Users can drill down the data based on the registered user and the API in question.
In addition to these come the subscription graphs: Developer Signups Over Time and Subscriptions Created Over Time, both of which are self-explanatory.
How These Statistics Work
WSO2 Analytics Server for API Manager is essentially a fully functional WSO2 DAS server.
In a nutshell, WSO2 API Manager 2.0.0 sends the following event streams to API Manager Analytics:
The APIM Analytics Server process these events and writes the summarized data to a shared database. WSO2 API Manager then queries statistics from this database to display in the API Manager Publisher and Store.
One significant change in WSO2 API Manager 2.0.0 statistics is the removal of the graphical user interface (GUI) for configuring statistics. In WSO2 API Manager 1.10, a GUI was provided to handle this DAS-related configuration. We’ve moved this functionality back into the api-manager.xml file.
We’ve also taken out the DAS Rest client – with 2.0.0, the default and only implementation is APIUsageStatisticsRdbmsClientImpl, which uses an RDBMS client to get data from the database.
Since this is essentially a DAS server, you can use features such as gadgets and real–time analytics (using Siddhi) for better or more complex visualizations of the events sent from WSO2 API Manager.