Configure Analytics for Moesif¶
Step 1 - Get Collector Application Id¶
-
Sign up for Moesif.
-
During the sign up process, you will receive a Collector Application Id for your configured application. Copy this value and keep it saved.
Step 2 - Configure APK¶
- Follow the instructions outlined in Customize Configurations. These instructions will guide you through the process of acquiring the
values.yaml
file. - Open the
values.yaml
file and set the following configuration under thewso2.apk.dp.gatewayRuntime
section.
analytics:
enabled: true
publishers:
- enabled: true
type: "moesif"
configProperties:
moesifToken: <collector-application-id>
- Redeploy the helm chart with the changes in
values.yaml
.
Optional - Adding Multiple Publishers¶
You can also set multiple publishers for analytics as follows.
analytics:
enabled: true
publishers:
- enabled: true
configProperties:
auth.api.token: <on-prem-key>
auth.api.url: "https://analytics-event-auth.choreo.dev/auth/v1"
type: "default"
- enabled: true
type: "elk"
- enabled: true
type: "moesif"
configProperties:
moesifToken: <collector-application-id>
Step 3 - View Analytics Data¶
-
After setting up the enforcer, invoke a few requests (success and failure) for a deployed API.
-
Go to your Moesif dashboard and you will be able to view your analytics reports.
The following is an overview of the graphs generated in the Moesif Dashboards.