scoutapp / roadmap

The public roadmap for Scout application monitoring.
https://scoutapp.com
16 stars 2 forks source link

Alerting improvements #86

Open bohnjamin opened 5 years ago

bohnjamin commented 5 years ago

Some alerting ideas: I can break this out into separate suggestions if need be, but I felt like the webhooks/email sections would mostly become irrelevant if building alert templates was a possibility.

Flap detection

not default, opt-in only

Alert Templating

Ideally the alerts would all be configurable with template variable values.

An example Alert Open email could look like this: Subject:Scout {{app_name}} alert: {{alert_name}} is {{alert_value}} for {{alert_duration}} Body:

App: {{app_name}} / {{link}}
Current value: {{alert_value}} over {{alert_duration}}
Threshold: {{alert_threshold}} over {{alert_duration}}
Start time: {{start_time}}

{{image:30m:include_throughput}}

This would render out to be: Subject: Scout My Example App alert: response_time_average is 127ms for 5m Body:

App:My Example App / https://scoutapm.com/apps/99999999?time=e:2019-05-30T16:50:00.000Z,d:30-min&p=response_time
Current value: 127ms over 5m
Threshold: >= 100ms over 5m
Start time: 2019-05-30T16:45:00.000Z

<attached/embedded image of the graph you'd find here: 
https://scoutapm.com/apps/99999999?time=e:2019-05-30T16:50:00.000Z,d:30-min&p=response_time&s=throughput>

Webhooks

Emails

Assuming templating is a longer-term or unrealistic goal, some other minor improvements could be added to emails

Alert open emails

Alert closed emails

lenart commented 3 years ago

Now that Zapier's webhooks are part of a premium plan I think you should put more effort into allowing integrations with services like Slack. Suggestions in this issue would be great addition.

Relates to #13