Skip to content

A Capistrano plugin which logs successful deployments to Cloudwatch

License

Notifications You must be signed in to change notification settings

OLIOEX/capistrano-cloudwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capistrano Cloudwatch Build Status Gem Version

Publish metric for successful deploy to AWS CloudWatch - for Capistrano v3.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-cloudwatch', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-cloudwatch

Usage

Require the gem in your Capfile:

require 'capistrano/cloudwatch'

And then set the variables in config/deploy.rb:

set :application, 'olioex'
set :project, 'core-api'   # optional!

The task will run automatically on successful deploy. Alternatively, you can notify of a deploy starting manually by using:

bundle exec cap production deploy:log_to_cloudwatch

The namespace for the metric will be:

Deployment

The metric will have the name of the Capistrano application.

The metrics have two dimensions:

  • environment
  • project (if set)

Copyright

Copyright (c) 2022 OLIO Exchange Ltd. See LICENSE.txt for further details.

About

A Capistrano plugin which logs successful deployments to Cloudwatch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages