Blog

Blog Post

Notifying AppSignal of Mina Deployments
Posted By nick, March 25, 2015

We decided to give AppSignal a trial run to possibly replace New Relic as our monitoring solution.

So far so good, it has a far simpler interface, and is missing a few niceties from New Relic, but overall it’s promising. It’s pricing model is simple and straightforward, and I’m guessing I won’t have account managers calling me trying to upsell, which would be nice.

We use Mina for deployment, and AppSignal has the ability to track data to specific deploys, so we need to notify them. The mina-appsignal gem is the result. To add deployment notification support to your Mina deploy script, just add the gem to your Gemfile:

gem 'mina-appsignal', require: false

And modify your deploy.rb to send the notification upon successful deployment:

require 'mina/rollbar'

...

task deploy: :environment do
  deploy do
    ...

    to :launch do
      ...
      invoke :'appsignal:notify'
    end
  end
end

If you use the config/appsignal.yml file, or set the APPSIGNAL_XXX environment variables to configure it, you don’t need to do anything else. Otherwise, you can set things like the API key and application name using configuration options, see the project GitHub page for details.

Contact

Say Hello!

Contact
hello@codelever.com
(402) 885-9521
14301 FNB Parkway, Suite 100, Omaha, NE 68154
Interact