25
TheEye

The Eye

Embed Size (px)

DESCRIPTION

slides for a lightning talk at the perl mongers wellington about my new monitoring system.

Citation preview

Page 1: The Eye

TheEye

Page 2: The Eye
Page 3: The Eye

monitoring sucks!

Page 4: The Eye

• lots of checks

• lots of notifies

• lots of effort to set up

Page 5: The Eye

lots of redundant bullshit

Page 6: The Eye
Page 7: The Eye

all I want to know is ...

Page 8: The Eye

is that beast working?

Page 9: The Eye

test driven monitoringFTW

Page 10: The Eye

• write tests for a project

• consistency and functionality and ...

• run those tests every n minutes

• track the outcome

Page 11: The Eye

• i am not interested if memory is up 1GB

• i am not interested if network traffic is lower or higher

• i am not interested if CPU is maxed out

Page 12: The Eye

as long as ...

• the tests pass

• the response times are low enough

• the beast is working and can be used

Page 13: The Eye

and if things go wrong?

Page 14: The Eye
Page 15: The Eye

• host infos

• pretty pictures

• as much info we can get about everything

_then_ we need

Page 16: The Eye

but _only_ then!

Page 17: The Eye

test driven monitoring?

Page 18: The Eye

TheEye

Page 19: The Eye

use Test::More tests => 4;use Test::WWW::Mechanize;

my $mech = Test::WWW::Mechanize->new;$mech->get_ok('http://github.com');$mech->base_is('http://github.com');$mech->title_is("Secure source...");$mech->content_contains("git reposi...");

Page 20: The Eye
Page 21: The Eye

easy!

Page 22: The Eye

the rest?

Page 23: The Eye

collectd!

Page 25: The Eye

credits

• Lord of the Rings (film by Peter Jackson)

• http://www.flickr.com/photos/pneumatic_transport/

• http://www.flickr.com/photos/puppydogbites/