This add-on is operated by Moesif Inc
Activate, engage, and monetize more users with a powerful API analytics platform
Moesif API Analytics and Monetization
Last updated September 16, 2022
Table of Contents
Grow and Monetize API Products with the Moesif API Analytics for Heroku
Activate, engage, and monetize more users with a powerful API analytics platform.
A list of Moesif plans can be found here.
Provisioning the add-on
The server integration installs in minutes to automatically monitor customer API traffic. Moesif automatically analyzes REST, GraphQL, XML/SOAP, RPC, and other APIs.
1. Install the Add-on
Moesif can be attached to a Heroku application via the CLI:
$ heroku addons:create moesif -----> Adding moesif to sharp-mountain-4005... done, v18 (free)
During provisioning, a
MOESIF_APPLICATION_ID config var is added to your Heroku app’s configuration. It contains the write-only API token that identifies your application with Moesif. You can confirm the variable exists via the
heroku config:get command:
$ heroku config:get MOESIF_APPLICATION_ID XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2. Install the server integration
- Go to your Heroku dashboard and open Moesif from under “Installed add-ons”
- The onboarding flow will walk you through installing a server integration which takes about 15 minutes.
- When initializing the SDK, use the environment variable
MOESIF_APPLICATION_IDfor the application id.
After you provision the add-on, you need to locally replicate your config vars so your development environment can operate against the service.
Use the Heroku Local command-line tool to configure, run, and manage process types specified in your app’s Procfile. Heroku Local reads configuration variables from a
.env file. To view all of your app’s config vars, type
heroku config. Use the following command for each value that you want to add to your
$ heroku config:get MOESIF_APPLICATION_ID -s >> .env
Credentials and other sensitive values should not be committed to source-control. In Git exclude the
.env file with:
echo .env >> .gitignore.
For more information, see the Heroku Local article.
Using Moesif Dashboards
For more information on how to use Moesif, please see the Moesif docs.
You can open the Moesif web portal in a browser via the CLI:
$ heroku addons:open moesif Opening moesif for sharp-mountain-4005
or by visiting the Heroku Dashboard and selecting the application in question. Select Moesif from the Add-ons menu.
Switching Moesif plans
heroku addons:upgrade command to migrate to a new plan.
$ heroku addons:upgrade moesif:pro -----> Upgrading moesif:newplan to sharp-mountain-4005... done, v18 ($550/mo) Your plan has been updated to: moesif:newplan
Removing the Moesif add-on
You can remove Moesif via the CLI:
This cannot be undone!
$ heroku addons:destroy moesif -----> Removing moesif from sharp-mountain-4005... done, v20 (free)
Moesif Terms of Service
All Moesif support and runtime issues should be submitted via email to firstname.lastname@example.org