AppSignal

This add-on is operated by 80Beans BV

Improve performance, debug errors and track deploys for your Ruby on Rails apps

AppSignal

Last Updated: 03 March 2014

Table of Contents

Heroku Addon Documentation

AppSignal is an add-on for providing performance monitoring for your Ruby on Rails apps. To measure is to know. Detailed metrics help to build better, faster Ruby on Rails apps. Improve performance, debug errors, track deploys and compare hosts all in one complete tool.

AppSignal error screen

  • View and inspect errors, recent or from the past
  • Error metrics per deploy
  • Detailed events break-down for actions
  • Error & throughput metrics
  • Mean + 90th percentile metrics and graphs
  • Leverage ActiveSupport::Notifications
  • See who deployed what & when

Our plans are entirely based on the number of web-requests your site receives. This can be very beneficial for sites that use a big number of dyno’s or have a low number of requests on only one dyno. We don’t charge for extra dyno’s. Take a look at our plans.

Does your site generate more requests then your plan can handle? Don’t worry, we will contact you about getting a plan upgrade, you won’t lose any data.

Supported frameworks

AppSignal currently supports Rails 3 and 4.

Provisioning the add-on

AppSignal can be attached to a Heroku application via the command line

$ heroku addons:add appsignal
-----> Adding appsignal to sharp-mountain-4005... done, v18 (free)

Once AppSignal has been added an APPSIGNAL_PUSH_API_KEY setting will be available in the app configuration and will contain the AppSignal api-key. AppSignal uses this to push data to it’s servers. It can also be used to generate a deploy hook or config file.

Retrieve the api-key using the heroku config:get command.

$ heroku config:get APPSIGNAL_PUSH_API_KEY

Installing the gem

After installing the gem and deploying your application, it will start aggregating and sending data to AppSignal.

Add the gem to the GemFile

gem 'appsignal'

Then update application dependencies with bundler.

$ bundle install

Deploy your application to Heroku.

That’s it! Your site is now being monitored.

Dashboard

The AppSignal dashboard allows you to view errors and performance issues, browse web actions and deploys, change settings and invite users into your account.

single sign-on

The dashboard can be accessed via the CLI:

$ heroku addons:open appsignal
Opening appsignal for sharp-mountain-4005...

or by visiting the Heroku apps web interface and selecting AppSignal from the Add-ons menu.

Invitations

An email has also been send to the owner of the Heroku app. With this email it’s possible to make an additional owner account and log in on AppSignal. If you already have an AppSignal account, you can use this invitation to add this app to your current AppSignal account.

Dashboard users won’t receive any email notifications about errors. You can invite additional users in the settings of your account within AppSignal, those users will be able to receive email notifications.

Deploy Hook

AppSignal likes to know when you have deployed your app. We use deploys to measure improvements in your app and as a way to re-set exception notifications.

Add a deploy hook in Heroku

YOUR-API-KEY is your AppSignal api-key, retrieve this using heroku config:get APPSIGNAL_PUSH_API_KEY. Make sure to replace it in the code below.

$ heroku addons:add deployhooks:http \
 --url="https://push.appsignal.com/1/markers/heroku?api_key=YOUR-API-KEY"

Using our config file

This is not required, but if you want to customize the gem settings, you can add a config file to your project. Within the config file you can change the slow request threshold or deactivate your site.

Generate a config file

YOUR-API-KEY is your AppSignal api-key, retrieve this using heroku config:get APPSIGNAL_PUSH_API_KEY

$ rails generate appsignal production YOUR-API-KEY

If you deploy your application AppSignal will now use the api-key contained in this config file instead of the APPSIGNAL_PUSH_API_KEY environment variable.

Adding integration gems

AppSignal supports various other databases like Mongo and Redis. You can add an integration gem for this to your project. Read more here.

Migrating between plans

NOTICE: Our Heroku integration is still in a test phase, migrating between plans is not possible yet!

These are all our current plans.

Use the heroku addons:upgrade command to migrate to a new plan.

$ heroku addons:upgrade appsignal:medium
-----> Upgrading appsignal:medium to sharp-mountain-4005... done, v18 ($149/mo)
       Your plan has been updated to: appsignal:medium

Removing the add-on

AppSignal can be removed via the CLI. This will destroy all associated data and cannot be undone!

$ heroku addons:remove appsignal
-----> Removing appsignal from sharp-mountain-4005... done, v20 (free)

Support

For more information about getting the most out of AppSignal read our docs.

Please email us or visit our campfire room if you have any issues or questions. We are happy to help!