Observability in DevOps with Modern Distributed Applications

70
© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. Observability in DevOps with Modern Distributed Applications Dave Mangot Head of Site Reliability Engineering, SolarWinds Cloud @davemangot

Transcript of Observability in DevOps with Modern Distributed Applications

Page 1: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Observability in DevOps with Modern Distributed Applications

Dave Mangot Head of Site Reliability Engineering, SolarWinds Cloud @davemangot

Page 2: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

About Me

• 20+ years in systems engineering, have led DevOps and operational maturity transformations at multiple companies

• Big companies: Cable & Wireless, Salesforce, SolarWinds

• Small Companies: Terracotta, Tagged, Librato

• International DevOps contributor

@davemangot

5/9/16 2

Page 3: Observability in DevOps with Modern Distributed Applications

© 2017 SolarWinds Worldwide, LLC. All rights reserved.

SolarWinds company overview: Quick facts

• Founded in 1999, over 18 years in the industry

• Over 250,000 customers in 170 countries, including 425 of the Fortune 500®

• Global headquarters in Austin, Texas, with 2,300 employees worldwide

• SolarWinds was taken private by private equity investment firms Thoma Bravo and Silver Lake Partners in February 2016

3

Page 4: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.4

but we wouldn’t be upset if you did :)

You do not need to purchase these solutions from SolarWinds!

Disclaimer:

Page 5: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 5

Page 6: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 6

Page 7: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 7

Page 8: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 8

Page 9: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 9

Page 10: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 10

Page 11: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 11

Page 12: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 12

Page 13: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 13

Page 14: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

DevOps

14

Page 15: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

DevOps

15

DevOps is a collaboration between Development, Operations and other teams with the recognition that we are tasked with achieving common business goals.

Page 16: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

The 3 Ways of DevOps

16http://itrevolution.com/the-three-ways-principles-underpinning-devops/

Page 17: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

The 3 Ways of DevOps

17

Page 18: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Feedback

18

Page 19: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

2nd Way of DevOps

The Second Way is about creating the right to left feedback loops. The goal of almost any process improvement initiative is to shorten and amplify feedback loops so necessary corrections can be continually made. The outcomes of the Second Way include understanding and responding to all customers, internal and external, shortening and amplifying all feedback loops, and embedding knowledge where we need it.

19http://itrevolution.com/the-three-ways-principles-underpinning-devops/

Page 20: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.20

Page 21: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.21

If it’s not monitored, it doesn’t exist

Page 22: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Uptime Monitoring

22

Page 23: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Uptime Monitoring

23

Page 24: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 24

Page 25: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 25

Page 26: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 26

Page 27: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 27

Page 28: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

https://blog.gigaspaces.com/amazon-found-every-100ms-of-latency-cost-them-1-in-sales/

28

Latency matters. Amazon found every 100ms of latency cost them 1% in sales. Google found an extra .5 seconds in search page generation time dropped traffic by 20%.

Page 29: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.29

You can’t improve what you don’t measure

Page 30: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Observability

30https://peter.bourgon.org/blog/2017/02/21/metrics-tracing-and-logging.html

Page 31: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.31

Page 32: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Logging (events)

32

Page 33: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Logging

33

tail -f /var/log/messages

Page 34: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 34

Page 35: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 35

Page 36: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Application Development/Troubleshooting

36

Page 37: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Setup

37

Page 38: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Logging

38

• Application Development

• Troubleshooting

• Deployments

• Search Alerts

Page 39: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Shipping

39

Page 40: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Search Alerts

40

Page 41: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Papertrail

41

Page 42: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 42

Page 43: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 43

Page 44: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Metrics (aggregatable)

44

Page 45: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Infrastructure Metrics

45

Page 46: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Host Metrics

46

Page 47: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.47

root 23706 1 0 Nov18 ? 00:00:00 /bin/sh -c start-stop-daemon --start --quiet --pidfile /var/run/appoptics/appoptics-snapteld.pid —chuid appoptics --exec /opt/appoptics/sbin/snapteld --oknodo --config /opt/appoptics/etc/config.yaml --pidfile /var/run/appoptics/appoptics-snapteld.pid

Host Metrics

Page 48: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Host Metrics

48

Page 49: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Application Metrics

49

Page 50: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Kafka

50

Page 51: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Custom Metrics

51

Page 52: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Metric Submission

52

api = librato.connect('email', 'token')

q = api.new_queue()

q.add('temperature', 22.1, tags={'location': 'downstairs'})

q.add('temperature', 23.1, tags={'location': 'upstairs'})

q.submit()

Page 53: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Custom Metrics

53

Page 54: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

The 4 Golden Signals

54

● Latency

● Traffic

● Errors

● Saturation

Page 55: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

The 4 Golden Signals

55

Latency

The time it takes to service a request.

Page 56: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

The 4 Golden Signals

56

Traffic

How much demand is being placed on your system.

Page 57: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

The 4 Golden Signals

57

Errors

The rate of requests that fail either explicitly, implicitly, or by policy.

Page 58: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

The 4 Golden Signals

58

Saturation

How “full” your service is.

Page 59: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Tracing (request scoped)

59

Page 60: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 60

Page 61: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Distributed Tracing

61

Web

App

Database

Page 62: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Distributed Tracing

62

Web

App

Database

X-Trace: 123654

X-Trace: 123654

X-Trace: 123654

Page 63: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 63

WHAT IS DISTRIBUTED TRACING?

HELP!No, help ME!

Page 64: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

export APPOPTICS_SERVICE_KEY="795fXXXXXXXe5f5b17c7:serviceA"

-javaagent:/usr/local/lib/appoptics-agent.jar

64

Page 65: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Distributed Tracing

65

Page 66: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Distributed Tracing

66

Page 67: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Distributed Tracing

67

Page 68: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.68

Page 69: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. 69

Page 70: Observability in DevOps with Modern Distributed Applications

© 2017 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.

Thanks!

70

@davemangot