sensu / sensu-dashboard

A dashboard for Sensu, for displaying & managing events & clients.
http://sensuapp.org
MIT License
96 stars 44 forks source link

Playbook URL Support #70

Closed nstielau closed 11 years ago

nstielau commented 12 years ago

This pull request adds the ability to specify a 'playbook' URL in the check JSON, which will optionally get displayed as a link on the dashboard event detail modal. This allows anybody who gets paged or otherwise looks at an event in sensu to be able to follow the 'playbook' link to view the wiki/gist/documentation for how to fix that issue.

This is a key part of scaling operation work across a broader team.

This is flexible because you can have a different playbook URL per check, or you can re-use them if multiple checks have the same basic diagnosis/fix.

One thing to note is that the dash gets the event data from the API, but then loads the playbook URL out of the dashboard config (if the check is present). This works if you drop the same sensu config on all servers, but not if the dashboard does not have access to the config.

I admit I'm not quite up-to-date on my dashboard install, and not sure if this will work for everyone, but I'm psyched to get this functionality up on our install (and hopefully get more engineers on PagerDuty sometime soon!).

portertech commented 11 years ago

@nstielau UI 2.0 dropped onto master last night, which made significant changes, making it impossible to merge this in. I've created #106 as a more generic feature.