Skip to content

Configure Analytics for Choreo Insights

Step 1 - Generate On-prem Key

  1. Sign in to Choreo.

  2. Go to Settings > On-prem Keys and click on Generate Key button.

  3. Copy the generated on-prem key.

Step 2 - Configure APK

  1. Follow the instructions outlined in Customize Configurations. These instructions will guide you through the process of acquiring the values.yaml file.
  2. Open the values.yaml file and set the following configuration under the wso2.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"
  1. 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

  1. After setting up the enforcer, invoke a few requests (success and failure) for a deployed API.

  2. 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.

Choreo Insights Overview

Choreo Insights Latency