The API Publisher Web application provides several statistical dashboards as follows:
- Usage of all APIs and usage of all APIs per creator
- Average response times
- Usage of an API per subscriber
- Usage of an API per subscriber per version
- Number of subscriptions per API
Apart from the number of subscriptions per API, all other statistical dashboards require that an instance of the WSO2 Business Activity Monitor (BAM) 2.0.0 is installed. For instructions on setting up BAM, see Monitoring using WSO2 BAM. Once BAM is set up, follow the instructions below to view statistics through the API Publisher.
- First, trigger some activities via the API gateway as explained in section Browser-Based REST Clients and wait a few seconds.
- Log in to the API Publisher (https://localhost:9443/publisher) as a user with
creator
orpublisher
role assigned. Depending on the role, the statistical menu items change as described below:- If you are logged in as a
publisher
, the All Statistics menu is visible in the left panel of the API Publisher Web interface. - If you are logged in as a
creator
, in addition to the All Statistics menu, you also see Statistics menu in the left panel of the API Publisher Web interface. The latter shows stats specific to the APIs created by you. - Both
creator
andpublisher
roles can view API-level usage and subscription statistics by clicking on a selected API and referring to its Versions and Users tabs.
- If you are logged in as a
Several examples of usage and performance statistics are given below:
Also, few examples of API-level statistics are shown below:
You can also see specific statistics for API subscribers from the Users tab. For example,