Top Banner
34
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: Chef Analytics Webinar
Page 2: Chef Analytics Webinar

Chef Analytics

James Casey

Engineering Lead – Analytics

[email protected]

Page 3: Chef Analytics Webinar

Outline

• Framing the problem

• Chef analytics

• Demo

• Roadmap

• Questions

Page 4: Chef Analytics Webinar

1980

1981

1982

1983

1984

1985

1986

1987

1988

1989

1990

1991

1992

1993

1994

1995

1996

1997

1998

1999

2000

2001

2002

2003

2004

2005

2006

2007

2008

2009

2010

2011

2012

2013

2014

2015

Enterprises Have Nearly Unlimited Computing Resources

Virtual Nodes

Physical Hardware

1980Mainframe

1990Client/Server

2000Datacenter

2010+Web-Scale

20

40

60

80

100

120

Mill

ion

s

Mil

lio

ns o

f S

erv

ers

Page 5: Chef Analytics Webinar

Exponential Increase in Size Leads toOperational Complexity

Web Servers

Application Servers

Database

Page 6: Chef Analytics Webinar

Exponential Increase in Size Leads toOperational Complexity

Web Servers

Application Servers

Database

Add 1 server

20+ Changes

12+ New

Dependences

Page 7: Chef Analytics Webinar

Speed of Execution Requires Visibility

• Change tracking

• Security logs

• Auditing

• Performance monitoring

Page 8: Chef Analytics Webinar

Chef Analytics Keeps Your Finger on the Pulse of Your Infrastructure

Page 9: Chef Analytics Webinar

Chef Analytics Provides Three Core Components

• Actions and Run History

• Record any policy or administrative changes to any object managed by Chef Server

• Track changes through all sources including management console, knife command or

direct application of chef-client

• Real-time Reporting

• Browse events in a friendly web UI with search, filters and sorting options

• Integrate with existing tools via API

• Notifications

• Alert teams of every change through built-in messaging and email integration

• Extend notifications to existing systems with simple webhook architecture

Page 10: Chef Analytics Webinar

Chef Analytics History

• Launched in May 2014

• Builds on Reporting (Run history) feature shipped in 2013

• Adds new fundamental data collection components

• Actions – track policy modifications on the Chef Server

• Compliance – assert controls on changes to infrastructure and policy

• Pluggable analytics pipeline

• Chef Actions component available now!

Page 11: Chef Analytics Webinar

Chef Analytics Architecture

Page 12: Chef Analytics Webinar

Chef Analytics Data Flow

Page 13: Chef Analytics Webinar

Reporting - Who did what on your Chef Server?

• Single view of what is changing in your infrastructure

• Success/Failure status of individual Chef Client runs

• Rollups of success/failure counts

• Rollups of run durations

• Drill-down detail to individual resource convergence

• State before/after

• Diffs (e.g. for templates, files)

• Errors

Page 14: Chef Analytics Webinar

Reporting – what’s happening on chef-client runs ?

Page 15: Chef Analytics Webinar
Page 16: Chef Analytics Webinar

Actions – The Real-time Event Stream

• Provide a read-only view of what happened

• Can be customized to meet audit and compliance reporting

requirements

• Allow administrators to react to events as they happen or

after the fact investigation

• “What happened just before nodes started failing runs?”

• “When did our systems gets patched for Heartbleed?”

Page 17: Chef Analytics Webinar
Page 18: Chef Analytics Webinar

DemoResolving Infrastructure Problems with Chef Analytics

Page 19: Chef Analytics Webinar
Page 20: Chef Analytics Webinar
Page 21: Chef Analytics Webinar
Page 22: Chef Analytics Webinar
Page 23: Chef Analytics Webinar

knife cookbook delete collectd-plugins

> knife cookbook delete collectd-plugins

Which version(s) do you want to delete?

1. collectd-plugins 1.2.0

2. collectd-plugins 1.0.15

3. All versions

1

Deleted cookbook[collectd-plugins][1.2.0]

Page 24: Chef Analytics Webinar
Page 25: Chef Analytics Webinar
Page 26: Chef Analytics Webinar
Page 27: Chef Analytics Webinar

Roadmap

Page 28: Chef Analytics Webinar

Analytics Roadmap

• To fill in

Page 29: Chef Analytics Webinar

Notifications

• Adds a language which allows you to express rules on

• Run Start

• Run End

• Run Resource convergence

• Actions

• Extensible for your business requirements

• “When someone not in the ‘siteops’ group modifies the DNS cookbook, alert the siteops team via email to

[email protected]

• “When the /etc/ssh/ssh_config file is modified, raise audit rule 24.1”

• Send to different external data sinks

• Messaging systems, e.g. Hipchat, Slack, SMTP

• Generic Webhook

Page 30: Chef Analytics Webinar
Page 31: Chef Analytics Webinar

Notification Rules

rule (action) when

set($siteops_members, [“james”, “allen”, “prajakta”]),

when entity_type = “cookbook”

and entity_name = “dns”

and array:contains($siteops_members, requestor_name) != true

Then

notify(“smtp”,

“siteops_mail”,

“DNS Cookbook modified by {{requestor_name}}”),

audit(“Rule 3.2 – DNS Cookbook modification”, false)

Page 32: Chef Analytics Webinar

How You Can Get Analytics

• Available as a Premium Feature of Chef Server

• Supported on Enterprise Chef 11.2 and Chef Server 12

• Included in Chef Subscription

• Also available free for installations less than 25 nodes

• Installation instructions

• https://docs.getchef.com/install_analytics.html

• Download from https://downloads.getchef.com/

Page 33: Chef Analytics Webinar

Questions?

Page 34: Chef Analytics Webinar