33
You're Monitoring Kubernetes Wrong Loris Degioanni, CEO, Sysdig

You're monitoring Kubernetes Wrong

  • Upload
    sysdig

  • View
    121

  • Download
    0

Embed Size (px)

Citation preview

Page 1: You're monitoring Kubernetes Wrong

You're Monitoring Kubernetes WrongLoris Degioanni, CEO, Sysdig

Page 2: You're monitoring Kubernetes Wrong

Data

Application HealthChecks

System/Process

Infrastructure

CustomMetrics

JVM

Data Big Honkin’ Data Engine

Unicorns and RainbowsDashboards

Page 3: You're monitoring Kubernetes Wrong
Page 4: You're monitoring Kubernetes Wrong

Loris DegioanniFounder and CEO of sysdigPast: WinPcap, Wireshark

http://www.sysdig.org@lorisdegio

Me

Page 5: You're monitoring Kubernetes Wrong

Today• Monitoring Kubernetes

• Few best practices• Some ideas• Some proposals

Page 6: You're monitoring Kubernetes Wrong

Using• Sysdig

• https://github.com/draios/sysdig • Sysdig Cloud

• https://sysdig.com/

Page 7: You're monitoring Kubernetes Wrong

In a Vendor Neutral Way

Page 8: You're monitoring Kubernetes Wrong

We Are in the Middle of a Big Change

PCs/Servers Virtual Machines Containers

Page 9: You're monitoring Kubernetes Wrong

We Are in the Middle of a Big Change

PCs/Servers Virtual Machines Containers

Unit: machineOrchestration: noneArchitecture: monolithic

Unit: machineOrchestration: externalArchitecture: monolithic

Unit: app/serviceOrchestration: nativeArchitecture: service-based

Page 10: You're monitoring Kubernetes Wrong

Things Are More Complex NowCacheWebserverDatabase

Page 11: You're monitoring Kubernetes Wrong

Computing Node

Computing Node

Computing Node

Service1Service2Service3

Computing Node

Computing Node

Computing Node

Things Are More Complex Now

Page 12: You're monitoring Kubernetes Wrong

Computing Node

Computing Node

Computing Node

Computing Node

Computing Node

Computing Node

Service1Service2Service3

Things Are More Complex

Page 13: You're monitoring Kubernetes Wrong

This Time Is More Than Servers and Processes

Page 14: You're monitoring Kubernetes Wrong

How Does This Impact Monitoring?

Page 15: You're monitoring Kubernetes Wrong

4 Things That Are Harder Now1. Getting the data2. Making sense of the data3. Troubleshooting4. People

Page 16: You're monitoring Kubernetes Wrong

Getting The Data• What makes containers great…

• Simple• Small • Isolated • Few dependencies

• … Also makes them more opaque

Page 17: You're monitoring Kubernetes Wrong

Getting The Data: Pods

OS

Container1

Docker

Container2

Docker

Page 18: You're monitoring Kubernetes Wrong

PodPod

Getting The Data: Pods

OS

Container1

Docker

Container2

Docker

Page 19: You're monitoring Kubernetes Wrong

PodPod

Getting The Data: Pods

OS

Container1

Docker

Monitoring

Docker

Container2

Docker

Monitoring

Docker

Page 20: You're monitoring Kubernetes Wrong

Getting The Data: Sysdig

OS

Container1

Docker

Container2

Docker

Container3

DockerAppApp

Page 21: You're monitoring Kubernetes Wrong

Getting The Data: Sysdig

OS

Container1

Docker

Container2

Docker

Container3

DockerAppApp

kernel module

Page 22: You're monitoring Kubernetes Wrong

Getting The Data: Sysdig

OS

Container1

Docker

Container2

Docker

Container3

DockerAppApp

sysdig

Docker

Capture andanalysis

Page 23: You're monitoring Kubernetes Wrong

Getting The Data: Sysdig

OS

Container1

Docker

Container2

Docker

Container3

DockerAppApp

sysdig

Docker

Capture andanalysis

Page 24: You're monitoring Kubernetes Wrong

Getting/Making Sense of the Data: Guidelines• You should not be involved in monitoring instrumentation• You should not be involved in producing anything that is not a

custom metric• Every metric should be tagged

• Tagging must be integrated with Kubernetes• You should not be involved in tagging metrics

• You should collect everything, with no filters

Page 25: You're monitoring Kubernetes Wrong

Demo – monitoring and segmenting data with sysdig monitoring

Page 26: You're monitoring Kubernetes Wrong

Troubleshooting

(https://github.com/kubernetes/kubernetes/issues/14051)

Page 27: You're monitoring Kubernetes Wrong

Demo – troubleshooting with open source sysdig

Page 28: You're monitoring Kubernetes Wrong

People• Microservices are about people• Monitoring microservices should be about people too

Page 29: You're monitoring Kubernetes Wrong

Introducing:Sysdig Teams

Page 30: You're monitoring Kubernetes Wrong
Page 31: You're monitoring Kubernetes Wrong

Sysdig Teams: Service-based access control• Designed to reflect teams of people• Integrated with Kubernetes• Support isolation and customization • Self service• Centralized

Page 32: You're monitoring Kubernetes Wrong

Use Cases• “dev vs prod” split• Team per Microservice• PaaS• Restricted environments

Page 33: You're monitoring Kubernetes Wrong

Links• Sysdig

• https://github.com/draios/sysdig • Sysdig Cloud

• https://sysdig.com/• Teams

• https://sysdig.com/blog/introducing-sysdig-teams/