Forum Discussion

Allen_Chan's avatar
11 years ago

ability for alert to trigger a script to be ran

Our engineers has asked for the ability to run a script ( groovy script) when an alert triggers.

Example of use case:

Given a database, They want to be able to get a snapshot of the processlist when connections spike to 500% above normal. The processlist would show who is beating the database up and help troubleshoot/prevent issue.

Currently there is no way for them to do that. If given that ability to trigger a script, i would write a groovy script to login into the database, run show processlist and dump it to filesystem or email it.

Thanks

  • Hi Allen,rnI think we already provide this type of capability. Please correct me if Im wrong, but couldnt you set up External Alerting a bit like this integration with PagerDuty to do this?rn rnLet me know?rnMichael

  • This is great! i will try this and open a support ticket if it doesnt work. rnThanks