Skip to main content
Feedback

Activate and display Metrics for WSO2

For WSO2, metrics must first be enabled via the Choreo cloud service in order to use and display them.

To make them usable in the API Control Plane , four variables must be inserted into the configuration file. These four values are optional. If they are not provided, the agent will not be able to obtain any metrics.

note

Your agent may not actually be using a config file. In that case, pass the extra parameters as environment variables, along with the others, prefixed with gateway., e.g. gateway.orgId.

type: WSO2
url: https://host:port
user: yourUser
password: yourPassword
consumerKey: yourConsumerKey
consumerSecret: yourConsumerSecret
orgId: yourOrgId
environmentId: yourEnvironmentId

consumerKey, consumerSecret, orgId and environmentId are all related to Choreo, the web platform where WSO2 optionally stores metrics, and need to be added manually to the configuration file.

Refer this link, for instructions on how to get started with Choreo.

Refer this link, for instructions on how to obtain consumerKey and consumerSecret.

orgId

To get the orgId, click on your Profile in the top right and select Settings:

How to WSO2 - orgId

You should see the settings page for your organization, where you can click “Copy ID” to obtain the orgId:

How to WSO2 - CopyId

environmentId

When looking at the metrics in Choreo, you can see the environmentId as env parameter in the URL:

How to WSO2 - EnvId

On this Page