- Login to your own Meteor APM instance.
- From the UI, create an app. You'll get an
AppId
and anAppSecret
. - Run
meteor add knotel:meteor-apm-client
inside your Meteor project. - Configure your Meteor app with the
AppId
,AppSecret
andendpoint
using environment variables or Meteor settings. - Install zodern:standard-minifier-js and zodern:hide-production-sourcemaps Now you can deploy your application and it will send information to your APM. Wait up to one minute and you'll see data appearing in the Dashboard.
Your app can connect to Meteor APM using environment variables or using Meteor.settings
.
Use the followng settings.json
file with your app:
{
...
"kadira": {
"appId": "<appId>",
"appSecret": "<appSecret>",
"options": {
"endpoint": "https://<MY-APM-DOMAIN>:<PORT>",
"webClientEndpoint": "https://<MY-APM-DOMAIN>:<PORT>"
"sourceMap": "true"
}
}
...
}
You should set hash to identify source-map version
export COMMIT_HASH='<commitHash>'
The run your app with meteor --settings=settings.json
.
Export the following environment variables before running or deploying your app:
export KADIRA_APP_ID=<appId>
export KADIRA_APP_SECRET=<appSecret>
APM comes with built in error tracking solution for Meteor apps. It has been enabled by default. 'webClientEndpoint' option lets you set different endpoints for server and web clients.
Check out the Meteor APM Guide for more information and improve your app with Meteor APM.