WSO2 API Manager (WSO2APIM)  is a fully open source, complete solution for creating, publishing and managing all aspects of an API and its lifecycle.
WSO2 Business Activity Monitor (WSO2BAM)  is a fully open source, complete solution for monitor/store a large amount of business related activities and understand business activities within SOA and Cloud deployments.
Users can use these two products together, which collectively gives total control over management and monitoring of APIs.
In this post I'm going to explain how APIM stat publishing and monitoring happens in WSO2APIM and WSO2BAM.
Configuring WSO2 APIM to publish statistics
You can find more information on setting up statistics publishing in . Once you do your configurations, it should look like the below.
Configuring WSO2 BAM
You can find more information on setting up statistics publishing in
Note that you only need to copy API_Manager_Analytics.tbox into super tenant space. (No need to do any configuration in tenant space)
Above digram illustrate how the stat data is published and eventually view though the APIM Statistic view.
1. Statistics information about APIs from all the tenants are published to the WSO2 BAM via a single data publisher.
2. API_Manager_Analytics.tbox has stream definitions and hive scripts needed to summarize statistics. These hive scripts get periodically executed and summarized data is pushed into a RDBMS.
3. When you visit statistics page in WSO2 APIM, it will retrieve summerized statistics form the RDBMS and shows it to you.
Note: If you need to view statistics of a API which is deployed in a particular tenant. Login in to WSO2 APIM in particular tenant and view statistics page.
(You don't need to do any additional configuration to support tenant specific statistics.)