scottsuch / capistrano-graphite

A gem for pushing graphite events via capistrano v3 deployment
MIT License
12 stars 5 forks source link

Include maintenance in graphs #23

Open jrgifford opened 9 years ago

jrgifford commented 9 years ago

If you're using the maintenance capistrano plugin, it would be nice to have a datapoint for the maintenance:enable and maintenance:disable tasks.

jrgifford commented 9 years ago

Any update on this?

scottsuch commented 9 years ago

Sorry @jrgifford, busy with work and family things right now. I probably won't get around to looking at this until after the new year. It should be a relatively trivial change if you want to have a crack at it though.

jrgifford commented 9 years ago

OK! I will take a stab at it and see what I can do. Was just looking for a “Yes this would be useful and accepted here” or a “No, not worth the time/not the right place for this”. Thanks!=

areina commented 9 years ago

Hey, well, I think you could do it adding this to your capistrano config:

after 'maintenance:enable' do
  invoke('deploy:post_graphite', 'maintenance ON')
end