Configure Analytics for Choreo Insights¶
Step 1 - Generate On-prem Key¶
-
Sign in to Choreo.
-
Go to
Settings > On-prem Keys
and click onGenerate Key
button. -
Copy the generated on-prem key.
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
configProperties:
auth.api.token: <on-prem-key>
auth.api.url: "https://analytics-event-auth.choreo.dev/auth/v1"
type: "default"
- 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 Choreo Insights and select the correct environment to view the analytics data.
Following are some of the graphs generated in the Choreo Insights.