Integrating Moesif Analytics with WSO2 API Manager 4.6
As API ecosystems grow in scale and complexity, traditional monitoring is no longer sufficient. Modern API platforms demand deep observability, real-time insights, and business-level analytics.
WSO2 API Manager 4.6 introduces native integration with Moesif, a powerful API analytics and observability platform that helps teams understand how APIs are used, who is using them, and where things go wrong — all in real time.
In this article, we’ll walk through a complete, end-to-end integration of Moesif Analytics with WSO2 API Manager 4.6, covering configuration, verification, and dashboard exploration.
What Is Moesif?
Moesif is an API analytics and observability platform designed specifically for API products. Unlike traditional metrics-only tools, Moesif focuses on:
- API usage behavior
- Latency and error patterns
- Customer and consumer analytics
- API monetization insights
- Debugging failed or slow API calls
When combined with WSO2 API Manager, Moesif transforms raw API traffic into actionable intelligence.
Prerequisites
Before starting, ensure you have the following:
- WSO2 API Manager 4.6.x installed and running
- Access to the Gateway node (where analytics are published)
- A Moesif account
- Basic familiarity with WSO2 APIM configuration files
High-Level Architecture
Step 1: Create a Moesif Account
- Visit the Moesif website
- Sign up for a free account
- After login, navigate to: Settings --> API Keys
- Copy the Application ID (API Key) This key uniquely identifies your WSO2 APIM instance in Moesif.
Step 2: Locate deployment.toml in WSO2 APIM
On your WSO2 API Manager Gateway node:
<APIM_HOME>/repository/conf/deployment.toml
This is the main configuration file where analytics integrations are enabled.
Step 3: Enable Moesif Analytics in WSO2 APIM
Add or update the following configuration in deployment.toml:
enable = true
api_key = "<YOUR_MOESIF_API_KEY>"
Step 4: Restart WSO2 API Manager
Step 5: Invoke an API
- Log in to API Publisher
- Create and publish a sample API (or use an existing one)
- Subscribe to the API via Developer Portal
- Generate an access token
- Invoke the API using curl / Postman
Step 6: Verify Events in Moesif Dashboard
Within a few seconds of invoking the API:
- Log in to Moesif
- Navigate to: Live Events --> API Calls
- You should see:
- API name & version
- HTTP method
- Response status
- Latency
- Client IP
- Consumer application



Comments
Post a Comment