Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

35
Pretty Nagios Charts Alexis Lê-Quôc (@alq) http://dtdg.co/nagios2012

Transcript of Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Page 1: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Pretty Nagios Charts

Alexis Lê-Quôc (@alq)http://dtdg.co/nagios2012

Page 2: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Pretty Nagios Charts

Alexis Lê-Quôc (@alq)http://dtdg.co/nagios2012

Page 3: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

@alqDev & OpsNagios user since 2008Datadog co-founder

Page 4: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Survey

Page 5: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Compared to Nagios World

2011...

Page 6: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Is your Nagios doing...

(a) Better(b) About the same(c) Worse

Page 7: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Why does it matter?

Page 8: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .
Page 9: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

How do you find out?

Page 10: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

MemoryAnalytics

Page 11: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .
Page 12: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

First, the pipeline

Page 13: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Your Nagios logsare a treasure

Page 14: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Comprehensive

Accurate

Written for you

Page 15: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Hard to comprehend

Page 16: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

IngredientsRaw logs

Simple parserSQL database

R ggplot2 or d3.js

Query

Extract

Analyze

Present

Page 17: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

nagios.log

PostgreSQL

R

ggplot2

Nice graphs

Page 18: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Python

nagios.log

nagios.csv nagios table

Postgres

R Data Frame

ggplot2

PDF

RPostgresql

Page 19: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Let’s play!

Page 20: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .
Page 21: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .
Page 22: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

5 lines of R

Page 23: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

ggplot(dd_by_day_raw, aes(occurrence_doy, daily, color=factor(notifying)))

+ geom_line()

+ xlab("Day of year")+ ylab("Service Alerts")+ ggtitle("Notifying v. silent alerts per day")

Data

Geometry

Chrome

Page 24: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .
Page 25: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

ggplot(dd_by_day_raw, aes(occurrence_doy, daily))

+ geom_line()

+ geom_smooth()

+ xlab("Day of year")+ ylab("Service Alerts")+ ggtitle("Daily trends")

Linear regression

Page 26: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .
Page 27: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

ggplot(dd_by_day_raw, aes(occurrence_doy, daily, color=factor(notifying)))

+ geom_line()

+ geom_smooth()

+ xlab("Day of year")+ ylab("Service Alerts")+ ggtitle("Notifying v. silent alerts per day")

Page 28: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Tuesdays???

Page 29: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

ggplot(dd_by_hod, aes(occurrence_dow, daily, group=occurrence_dow))

+ geom_boxplot()

+ scale_x_discrete(breaks=seq(0, 6), labels=c("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"))+ xlab("Day of the week")+ ylab("Number of alerts")+ ggtitle("Daily distribution")

Page 30: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Fun with Nagios stats...As a

Service

Page 31: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Performance Metrics

Nagios TrafficOther Sources

Real-time graphs + analytics

Page 32: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Play Stack:•parser•postgres•R•ggplot2

Service Stack:•parser•postgres•Hadoop•d3.js

Page 33: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

Quick demo

Page 34: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

And more...

Real-Time Graphing

CorrelationMetric-based Alerts

“Share what you see”

Page 35: Pretty Nagios Charts Alexis Lê-Quôc (@alq) .

http://datadoghq.com

Curious?