SlideShare a Scribd company logo
Monitoring in the Cloud
          with Puppet
    PuppetCamp Ghent 2013
         Kris Buytaert
Kris Buytaert
●   I used to be a Dev,
●   Then Became an Op
●   Chief Trolling Officer and Open Source
    Consultant @inuits.eu
●   Everything is an effing DNS Problem
●   Building Clouds since before the bookstore
●   Some books, some papers, some blogs
●   Evangelizing devops
Do you know what your children do at 5 am
            in the morning ?
●   Sleeping ?
●   Crashing a Party ?
●   Why are the cops at your front door ?
●   What happened ?
●   How long have they been gone ?
devops
●   Culture
●   (Lean)
●   Automation
●   Measurement
●   Sharing
              Damon Edwards and John Willis
                                  Gene Kim
Monitoring is usually an
aftertought
                ENOBUDGET, ENOTIME
A sub movement
●   #monitoringsucks trending
●   https://github.com/monitoringsucks/
●   2008 Study :Nagios + Friends
●   2011 Conclusion : Nagios/Icinga are
    the only automatable alternatives
#monitoringsucks
    Monitoring is AWESOME. Metrics are AWESOME. I love it. Here's what I don't love:

●   Having my hands tied with the model of host and service bindings.

●   Having to set up "fake" hosts just to group arbitrary metrics together

●   Having to either collect metrics twice - once for alerting and another for trending

●   Only being able to see my metrics in 5 minute intervals

●   Having to chose between shitty interface but great monitoring or shitty monitoring
    but great interface

●   Dealing with a monitoring system that thinks IT is the system of truth for my
    environment

●   Not actually having any real choices

               John Vincent (@lusis) on his blog http://lusislog.blogspot.com/2011/06/why-
                                                                      monitoring-sucks.html
Monitoring in the cloud with Puppet
Let's forget about
●   GroundWork   ●   Cacti
●   Zenoss       ●   Munin
●   Zabbix       ●   BigBrother
●   Hyperic
What's different in the cloud ?
●   Scale
●   Velocity
●   Change
Monitoring in the cloud with Puppet
Monitoring in the cloud with Puppet
Monitoring in the cloud with Puppet
Challenges
●   Reproducability
●   Speed
●   Auditing
●   Keeping stuff in sync
Thank god Luke for Puppet
And Mark for Cfengine
}
#monitoringsucks   2013
What we want
●   Small , wel suited components
    •   Collect
    •   Transport / Mangle
    •   Analyse / Act
    •   Visualize
Monitoring in the cloud with Puppet
Collectd
●   Collects
●   Zillion Plugins
    •   Nginx,apache, mysql, disk
●   Graphite Carbon Plugin
●   Send metrics to graphite
●   https://github.com/KrisBuytaert/pupp
    et-collectd
●   Collect from
    anywhere
●   Filter
●   Send anywhere
Puppet and Logstash
●   https://github.com/KrisBuytaert/vagrant-puppet-logstash

●   Includes Logstash / Kibana / Grok / ES modules as
    submodules !

    git clone

●   git submodule init

●   git submodule update

●   vagrant up
Graphite
●   Graphing at Scale
●   Graphing at Ease
●   Any metric is a graph


●   echo "somestring $somevalue $timestamp" |
    nc <%= graphitehost %> 2003
Graphite Composer

   x
Graphite API
Gdash In action
Puppet and Graphite
●   https://github.com/KrisBuytaert/vagrant-graphite/

●   Includes Graphite / Gdash / Jmxtrans / Logster / Collectd /
    Statsd / Tattle and more modules as submodules !




●   git clone

●   git submodule init

●   git submodule update

●   vagrant up
Collectd & Graphite
Configuring a Service
●   Package
●   Config
●   Service
     <- we pray status is correct
Apache Example:
Definition of Done:


  Done means : being monitored
Icinga ?
•   Isn't nagios dead ?
•   Vibrant Community
•   Throw great parties in Nurnberg
•   Nobody can pronounce it anyhow
•   https://github.com/Inuits/puppet-icinga/
Monitoring Baseline
●   Deploy a host,
●   Add it to the monitoring
●   Add collection tools
●   Add check definitions
●   Update the monitoring tool config
Stored Configs
Collection and Export
 Export :           Collect:
 @@resource {       Resource <<|
                    query |>>
 ... }


Clean out nodes that dissapear
puppet node clean
Exporting and Collecting
Monitoring a Vhost
It is not in production if it is not
             monitored
Triggers on Graphs
●   Export Java Metrics    ●   Collect JMX Exports on
                               JMXTransNode
●   JMXTrans
                           ●   Graph Em
●   Export JMXConfigs
                               Collect Nagios Configs
●   Configure NRPE Check       on Nagios Server
●   Export NagiosCheck
Triggers on Graphs
Triggers on Graphs
Conclusion:
●   Reproducable monitoring setup
●   Dynamically generated monitoring
    config
●   Code is available at
    github.com/KrisBuytaert/snippets
But,
(pronounced in Ozzy dialect)
http://www.kartar.net/2013/01/monitoring-sucks---a-rant/
#monitoringlove
Homework
Sensu        Riemann
Extrememon   Esper
...
Contact
Kris.Buytaert@inuits.eu

Further Reading
@krisbuytaert
http://www.krisbuytaert.be/blog/
http://www.inuits.eu/




                             Inuits

                             Duboistraat 50
                             2060 Antwerpen
                             Belgium
                             891.514.231

                             +32 475 961221
http://loadays.org

More Related Content

ODP
Future of Sysadmin 2014
ODP
Building and Deploying MediaSalsa, an Open Source DAM as Saas platform
ODP
Continuous Delivery of (y)our infrastructure.
PDF
Pipeline all the Dashboards as Code
PDF
Velocity 2011: Production Begins in Development
PDF
Help , My Datacenter is on fire
PDF
GitOps , done Right
PDF
Open Source Monitoring in 2019
Future of Sysadmin 2014
Building and Deploying MediaSalsa, an Open Source DAM as Saas platform
Continuous Delivery of (y)our infrastructure.
Pipeline all the Dashboards as Code
Velocity 2011: Production Begins in Development
Help , My Datacenter is on fire
GitOps , done Right
Open Source Monitoring in 2019

What's hot (20)

ODP
Deploying your SaaS stack OnPrem
PDF
Migrating to Puppet 5
PPTX
Using GitHub Actions to Deploy your Workloads to Azure
PDF
Stripe con 2021 UI stack
PDF
DevOps with GitHub Actions
PPTX
CI/CD with GitHub Actions
PPTX
CICD Pipeline Using Github Actions
PDF
Git for folk who like GUIs
PPTX
GitHub Actions demo with mabl
PDF
Devops Porto - CI/CD at Gitlab
PPTX
Container based CI/CD on GitHub Actions
PPTX
Extending GWT
PPTX
Azure Functions
PDF
GitHub Actions in action
PPTX
Github in Action
PPTX
1 git-overview
PDF
How we leveraged Drupal to build a leading SaaS product
PPTX
Languages don't matter anymore!
PPTX
Hashi talk israel
PDF
Devoxx : being productive with JHipster
Deploying your SaaS stack OnPrem
Migrating to Puppet 5
Using GitHub Actions to Deploy your Workloads to Azure
Stripe con 2021 UI stack
DevOps with GitHub Actions
CI/CD with GitHub Actions
CICD Pipeline Using Github Actions
Git for folk who like GUIs
GitHub Actions demo with mabl
Devops Porto - CI/CD at Gitlab
Container based CI/CD on GitHub Actions
Extending GWT
Azure Functions
GitHub Actions in action
Github in Action
1 git-overview
How we leveraged Drupal to build a leading SaaS product
Languages don't matter anymore!
Hashi talk israel
Devoxx : being productive with JHipster
Ad

Similar to Monitoring in the cloud with Puppet (20)

ODP
Monitoring your VM's at Scale
PDF
OSMC 2014: From monitoringsucks to monitoringlove (and back) | Kris Buytaert
PDF
OSMC 2014 | From monitoringsucks to monitoringlove, and back by Kris Buytaert
PPTX
Time to say goodbye to your Nagios based setup
PDF
OSMC 2014: Time to say goodbye to your Nagios setup | Oliver Jan
ODP
From MonitoringSucks to Monitoring Love , 2016 Edition
PDF
OSMC 2014 | Time to say goodbye to your Nagios based setup? by Oliver Jan
ODP
Monitoring in an Infrastructure as Code Age
PDF
Monitoring Drupal In an Infrastructure as Code Age
PDF
Monitoring in an Infrastructure as Code Age
PDF
Open Source Monitoring in 2015
KEY
Trending with Purpose
PDF
Handout: 'Open Source Tools & Resources'
PDF
Lesson_08_Continuous_Monitoring.pdf
PPTX
Open Source Monitoring Tools
PDF
Have you been stalking your servers?
ODP
Monitoring with ElasticSearch
PDF
Open source monitoring systems
PPTX
Data opsdc clearspringmetrics
PDF
Ceilometer presentation ODS Grizzly.pdf
Monitoring your VM's at Scale
OSMC 2014: From monitoringsucks to monitoringlove (and back) | Kris Buytaert
OSMC 2014 | From monitoringsucks to monitoringlove, and back by Kris Buytaert
Time to say goodbye to your Nagios based setup
OSMC 2014: Time to say goodbye to your Nagios setup | Oliver Jan
From MonitoringSucks to Monitoring Love , 2016 Edition
OSMC 2014 | Time to say goodbye to your Nagios based setup? by Oliver Jan
Monitoring in an Infrastructure as Code Age
Monitoring Drupal In an Infrastructure as Code Age
Monitoring in an Infrastructure as Code Age
Open Source Monitoring in 2015
Trending with Purpose
Handout: 'Open Source Tools & Resources'
Lesson_08_Continuous_Monitoring.pdf
Open Source Monitoring Tools
Have you been stalking your servers?
Monitoring with ElasticSearch
Open source monitoring systems
Data opsdc clearspringmetrics
Ceilometer presentation ODS Grizzly.pdf
Ad

More from Kris Buytaert (20)

PDF
Years of (not) learning , from devops to devoops
PDF
Observability will not fix your Broken Monitoring ,Ignite
PDF
Infrastructure as Code Patterns
PDF
From devoops to devops 13 years of (not) learning
PDF
Devops is Dead, Long live Devops
PDF
10 years of #devopsdays, but what have we really learned ?
PDF
Continuous Infrastructure First
PDF
Is there a Future for devops ?
PDF
10 Years of #devopsdays weirdness
PDF
ADDO 2019: Looking back at over 10 years of Devops
PDF
Can we fix dev-oops ?
PDF
Continuous Infrastructure First Ignite Edition
PDF
Continuous Infrastructure First
ODP
Repositories as Code
PDF
Devops is a Security Requirement
ODP
Is there a future for devops ?
ODP
Looking back at 5 years of #cfgmgmtcamp
PDF
Pipeline as code for your infrastructure as Code
ODP
Automating MySQL operations with Puppet
PDF
The Return of the Dull Stack Engineer
Years of (not) learning , from devops to devoops
Observability will not fix your Broken Monitoring ,Ignite
Infrastructure as Code Patterns
From devoops to devops 13 years of (not) learning
Devops is Dead, Long live Devops
10 years of #devopsdays, but what have we really learned ?
Continuous Infrastructure First
Is there a Future for devops ?
10 Years of #devopsdays weirdness
ADDO 2019: Looking back at over 10 years of Devops
Can we fix dev-oops ?
Continuous Infrastructure First Ignite Edition
Continuous Infrastructure First
Repositories as Code
Devops is a Security Requirement
Is there a future for devops ?
Looking back at 5 years of #cfgmgmtcamp
Pipeline as code for your infrastructure as Code
Automating MySQL operations with Puppet
The Return of the Dull Stack Engineer

Monitoring in the cloud with Puppet