The document discusses real-time monitoring tools and techniques. It introduces common tools like Graphite, StatsD, and CollectD that can be used to capture system metrics and visualize real-time performance data. The document emphasizes that real-time monitoring is important for making quick decisions, improving performance, and detecting issues promptly.
5. monitoring sucks
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 5
6. „
But does monitoring
REALLY suck?
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 6
7. ...
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 7
8. „
Yes, yes i know:
You can just combine Nagios + collectd + graphite +
pnp4nagios an you have everything you need!
...
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 8
9. „
Seriously? Kiss my ass. I‘m a huge fan of the Unix pipeline
philosophy but, crhist, have you ever heard the phrase
„antipattern“?
- John E. Vincent
http://lusislog.blogspot.com/2011/06/why-monitoring-sucks.html
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 9
47. Graphs
// timing.graph
title "Event-Queue Timing "
vtitle "Duration in s"
from "-1hours"
area :none
linewidth 1
description "Duration in s"
field :lower, :scale => 1,
:color => "green",
:alias => "Lower",
:data => "sumSeries(events.*.timing.lower)",
:derivative => false
field :mean, :scale => 1,
:color => "yellow",
:alias => "Mean",
:data => "sumSeries(events.*.timing.mean)",
:derivative => false
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 45
48. Graph Settings
title "A sample graph"
vtitle "events"
width 800
height 600
from "-2days"
until "-1days"
area :all|first|none
description "Events"
hide_legend true
linewidth 2
...
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 46
50. Logster
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 48
51. Log
2012/02/02 09:09:06 [warning] 13674#0: *24533 FastCGI sent in stderr: ...
2012/02/02 14:06:07 [warning] 13674#0: *24533 FastCGI sent in stderr: ...
2012/02/02 19:02:01 [warning] 13674#0: *24533 FastCGI sent in stderr: ...
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 49
52. Log
2012/02/02 09:09:06 [warning] 13674#0: *24533 FastCGI sent in stderr: ...
2012/02/02 14:06:07 [warning] 13674#0: *24533 FastCGI sent in stderr: ...
2012/02/02 19:02:01 [warning] 13674#0: *24533 FastCGI sent in stderr: ...
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 50
53. Parser
....
self.reg = re.compile('magic')
....
# Return a list of metrics objects
return [
MetricObject("warning", (self.warning / self.duration), "warnings per sec"),
]
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 51
54. 600
450
300
150
0
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Real-Time-Monitoring I Mayflower GmbH I 9. Feb 2012 I 52
55. Deploy-Trend
echo "deploys 1 `date +%s`" | nc graphite.info 2003
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 53
56. 600
450
300
150
0
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Real-Time-Monitoring I Mayflower GmbH I 9. Feb 2012 I 54
57. Happy Developers
600
450
300
150
0
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Real-Time-Monitoring I Mayflower GmbH I 9. Feb 2012 I 54
58. CollectD-Graphite
Plugin
Real-Time-Monitoring I Mayflower GmbH I 9. Feb. 2012 I 55