Skip to content
Ric Lister edited this page May 23, 2013 · 2 revisions

Events are sparse data lines that are superimposed on the big graph in the boxes view. Default events are configured in cfg/_events_.js, but can also be added in individual dashboard cfgs.

For example, we increment a counter via statsd every time a production deploy is done with capistrano, and also use the ganglia events api to store start and end times of nightly backups and DB repairs.

Dash.events()
  .add(
    {
      title:  'Production Deploys',
      target: 'stats_counts.events.deploy.production.*',
      class:  'production_deploys'
    },
    {
      title:  'Puppet Configuration Changes',
      target: 'stats_counts.events.puppet.*',
      class:  'puppet_deploys'
    },
    {
      title:  'Ganglia events',
      type:   'ganglia_events',
      source: 'http://ganglia',
      class:  'ganglia_events'
    }
  );

A CSS class may be applied to give different styling to different events (see public/css/dashboard.css).

Clone this wiki locally