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

Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Jan 26, 2015

Download

Technology

Nagios

Alexis Le Quoc's presentation on making better Nagios Charts. The presentation was given during the Nagios World Conference North America held Sept 25-28th, 2012 in Saint Paul, MN. For more information on the conference (including photos and videos), visit: http://go.nagios.com/nwcna
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Pretty Nagios Charts

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

Page 2: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Pretty Nagios Charts

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

Page 3: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

@alqDev & OpsNagios user since 2008Datadog co-founder

Page 4: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Survey

Page 5: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Compared to Nagios World

2011...

Page 6: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Is your Nagios doing...

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

Page 7: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Why does it matter?

Page 8: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)
Page 9: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

How do you find out?

Page 10: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

MemoryAnalytics

Page 11: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)
Page 12: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

First, the pipeline

Page 13: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Your Nagios logsare a treasure

Page 14: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Comprehensive

Accurate

Written for you

Page 15: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Hard to comprehend

Page 16: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

IngredientsRaw logs

Simple parserSQL database

R ggplot2 or d3.js

Query

Extract

Analyze

Present

Page 17: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

nagios.log

PostgreSQL

R

ggplot2

Nice graphs

Page 18: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Python

nagios.log

nagios.csv nagios table

Postgres

R Data Frame

ggplot2

PDF

RPostgresql

Page 19: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Let’s play!

Page 20: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)
Page 21: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)
Page 22: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

5 lines of R

Page 23: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (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: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)
Page 25: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (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: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)
Page 27: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (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: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Tuesdays???

Page 29: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (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: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Fun with Nagios stats...As a

Service

Page 31: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Performance Metrics

Nagios TrafficOther Sources

Real-time graphs + analytics

Page 32: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Play Stack:•parser•postgres•R•ggplot2

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

Page 33: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

Quick demo

Page 34: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

And more...

Real-Time Graphing

CorrelationMetric-based Alerts

“Share what you see”

Page 35: Nagios Conference 2012 - Alexis Le Quoc - Pretty Nagios Charts (alq)

http://datadoghq.com

Curious?