Stash running low on resources can send emails to admin?

currently a red band appears on Stash when running low on resources. I was wondering if it is possible to send a Hip chat notification or then a email to admins to notify before a bunch of developers send a email after looking at the UI message.

1 answer

Hi Rajesh,

There's no built-in mechanism for emitting notifications when Stash reaches resource limits, but it would be pretty straight forward to implement as an add-on if you have someone on your team with some java experience. Stash will emit a TicketRejectedEvent whenever an operation is aborted due to high server load. All you'd need to do is listen for the event and emit a HipChat or Email notification.

There's an open source Stash HipChat add-on on Bitbucket that I haven't personally tried, but it looks like a good start (or you can look at the HipChat notifier hook bundled with Stash if you have a commercial Stash license, which entitles you to source access). The Stash developer site has some other helpful resources too.

cheers,

Tim

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,755 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you