Archive for June, 2011

Announcing Ganglia Web 2.1.1

Ganglia team is announcing the release of Ganglia Web 2.1.1. Notable additions are

Latest release can be downloaded from

https://sourceforge.net/projects/ganglia/files/gweb/2.1.1/

Please follow the installation instructions after the download.

Update: Jeff Buchbinder (@jbuchbinder) was fast and added missing Edit action to the API. You can now download 2.1.2.

https://sourceforge.net/projects/ganglia/files/gweb/2.1.2/

No Comments

Overlaying event timeline

In our “introducing overlay events” we added ability to specify events that are overlaid on top of graphs. Thanks to the work of Jesse Becker we now also support overlaying event time line. To best illustrate this is how overlaying event time line looks like

Events time line 1

This provides you with immediate context and allows you to better correlate metrics. It may also provide you with additional insight. Let’s say you saw something like this

Events time line 2

It may not be DB backup that is causing the load and you may want to investigate.

To use event time line all you need to do is supply both start and end time of the event e.g.

wget -O /dev/null -q "http://mygangliahost.com/ganglia/api/events_api.php?action=add&start_time=12340000&end_time=12340500&summary=Prod DB Backup&host_regex=db02"

We are working on a generic wrapper to run with any command that will populate the events API. Stay tuned.

To download please visit

https://github.com/vvuksan/ganglia-misc

https://github.com/vvuksan/cronologger

No Comments

Announcing Ganglia Web 2.0.0

After many months of development we are happy to announce arrival of Ganglia Web 2.0.0 release. Some of the notable features include

  • Time period zooming ie. select time period you want to zoom with your mouse
  • Views
  • Define graphs using a JSON representation
  • Create easy aggregate (rollup graphs)
  • Mobile optimized/reduced view
  • etc.

You can read about other features here. You can download the latest version from our SourceForge repository here

http://sourceforge.net/projects/ganglia/files/gweb/2.0.0/

After you download it please read the installation instructions as there are couple steps you will need to do for things to work.

No Comments

Introducing Overlay Events

One of the commonly asked Ganglia feature requests has been the ability to overlay events as vertical lines e.g. to show deploys. Unfortunately there was no built in functionality in Ganglia to do that but it had to be “hacked in”. For example in this blog post there is a description of one approach. Fortunately that is now history as we have added “Overlay Events”. This is a generic feature that allows you to specify a list of events including time (unix timestamp) and description as well as grid, cluster and host regex that this event applies to. This way you can limit an overlay event to a subset of hosts e.g. DB backup affects only the DB slave server. You will end up with something like this
Overlay events

To enable overlay events add following to your conf.php

$conf['overlay_events'] = true;

Events are configured using a simple JSON array. By default events are stored in the following file

$conf['overlay_events_file'] = $conf['conf_dir'] . "/events.json";

If you are using defaults that is

/var/lib/ganglia/conf/events.json

Example of the events JSON file used to create the above overlay looks like this

[
 {"start_time":1308496361,
 "summary":"DB Backup",
 "description":"Prod daily db backup",
 "grid":"*",
 "cluster":"*",
 "host_regex":"centos1"},
 {"start_time":1308497211,
 "summary":"FS cleanup",
 "grid":"*",
 "cluster":"*",
 "host_regex":"centos1"}
]

Currently only host_regex is supported but we are working on adding filtering by grid and cluster. All you now need to do is decide which events to include. Example events you can include

  • Start time of particular periodic jobs such as DB backups, DB clean ups
  • Deploys
  • Nagios alerts sent

Alternatively you can try the Events API e.g. I have added following command to be executed before my critical jobs start

wget -O /dev/null -q "http://mygangliahost.com/ganglia/api/events_api.php?action=add&start_time=now&summary=Prod DB Backup&host_regex=db02"

Change the start_time to a UNIX timestamp or a well formed date.

To download the latest release with Overlay events please visit

https://github.com/vvuksan/ganglia-misc

No Comments