38
Going Beyond the Device Heart Beat Balwinder Kaur, Principal Software Engineer OpenIoTSummit, San Diego, Apr 4, 2016

Going Beyond the Device Heart Beat

Embed Size (px)

Citation preview

Page 1: Going Beyond the Device Heart Beat

Going Beyond the Device Heart Beat Balwinder Kaur, Principal Software EngineerOpenIoTSummit, San Diego, Apr 4, 2016

Page 2: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 2

Agenda

• Introduction• The Basics• An IoT World

o Device Visibilityo Application Visibility

• Best Practices for End to End Performance Monitoring• Unique Challenges of IoT• Q&A• Summary

Disclaimer"Opinions expressed are solely my own and do not express the views or opinions of my employer."

Page 3: Going Beyond the Device Heart Beat

Introduction

Page 4: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 4

Connected Things Disrupt Business Models

Oslo Smart Lighting

Page 5: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 5

“IoT devices directly, or indirectly, impact the

bottom line of a business."

Page 6: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 6

Making the headlines

Page 7: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 7

How do I prevent an NYT moment?

Page 8: Going Beyond the Device Heart Beat

The Basics

Page 9: Going Beyond the Device Heart Beat

The Device

Page 10: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 10

What is an IoT Device?

Traditional Embedded Device+

Connectivity+

Cloud Services

Page 11: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 11

Are all IoT “Things” equal?

• No• A very fragmented space• Classify to manage

GatewayEndpoints

w/ Routing

Endpoints w/o

RoutingSensor Rich |Touches the Physical WorldDigital

Page 12: Going Beyond the Device Heart Beat

The Cloud

Page 13: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 13

IT Teams Monitor Cloud Services

Infrastructure Monitoring• Server Monitoring• Network Monitoring

Application Performance Monitoring (APM) Systems

• Web applications & containers• Database Performance• Byte Code Injection is popular

Log Files Crash Reports

Page 14: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 14

Application Performance Monitoring System

“One of the most important steps in any application performance monitoring initiative is combining data from disparate monitoring "silos" into a correlation engine and dashboard. The dashboard makes data logs easier to read and saves IT staff from memory-dependent and error-prone manual correlation and analysis.”

• Source: http://searchenterprisedesktop.techtarget.com/definition/Application-monitoring-app-monitoring

Page 15: Going Beyond the Device Heart Beat

An IoT World

Page 16: Going Beyond the Device Heart Beat

End to End IoT Solution Architecture Diagram

Page 17: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 17

End to End Monitoring

• Performance monitoring must be extended to cover the IoT Devices

IoT Device Cloud Services

End to End Reliability

Page 18: Going Beyond the Device Heart Beat

Device Visibility

Page 19: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 19

IoT Device Visibility

Device Management

Systems

Device Management

Device Health

Application Performance Management

Application Health(on device)

Application Health(transactions)

Not operational

data

On device; closely related

Main Focus Area

Page 20: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 20

Device Health

System Performance CPU Usage Memory Usage Power Level Uptime Disk I/O Network Health Location Information

Fast Moving Data

Device Configuration OS Model Manufacturer Hardware, Firmware, S/W

Version

Slow Moving Data

Page 21: Going Beyond the Device Heart Beat

Application Visibility

Page 22: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 22

IoT Device Cloud Services

End to End Reliability

Application Transaction Health

1) Calls per minute2) Errors per minute

3) Latency (in milliseconds)4) Crash Reporting

Measurement Metrics

Page 23: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 23

Two Classes of Problems

Transaction Health is good Device Health is

deteriorating

Device Health is good. Transaction Health is poor

Network Problems S/W Version mismatch S/W- H/W version mismatch

Device Management System Application Performance Management Systems

Page 24: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 24

Key Performance Indicator - MTTR

.

Trapped Metrics

Manual Correlation

ManualRemediation

Major Reasons Contributing to a Poor MTTR (Mean-Time-to-Resolution)

Gap between

Operations and

Engineering

Page 25: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 25

Unified Dashboard

Unified Monitoring

Device Health Application HealthInfrastructure Health

IoT Device Cloud Services

Device Management Systems APM Systems

Page 26: Going Beyond the Device Heart Beat

End-to-End Performance MonitoringBest Practices for IoT

Page 27: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 27

Top Five Features

Performance

Correlation

Remediation

Analytics

Availability

Page 28: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 28

Device Side Instrumentation

Capture and report Device Metrics

Capture and report Device Events

Page 29: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 29

Unified Monitoring System

AggregatesMetrics and Events

Correlates Events Alerts Remediates

Page 30: Going Beyond the Device Heart Beat

Unique Challenges that IoT brings(aka devil is in the details)

Copyright © 2015 AppDynamics. All rights reserved.

30

Page 31: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 31

Choosing Instrumentation Agents for IoT Devices

Web Agent Embedded Agent

Message Payload Format JSON ProtoBuf, CBOR. BSON

Application Layer HTTP/HTTPS MQTT/MQTT-SN, CoAP

Security TLS DTLS

Transport Layer TCP/UDP UDP

Network Layer IPv4/IPv6 IPv6/ 6LowPAN

Link Layer Ethernet, 802.11 802.15.4

Page 32: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 32

Choosing Instrumentation Agents for IoT Devices (contd)

• Small static and runtime memory footprint• Small disk usage. • Meets or exceeds security requirements of the

IoT Device• Support for your favorite programming

language.

Page 33: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 33

Open Source Solutions

• Prometheus.io :Open-source service monitoring system & time series database• Influxdata.com: Platform for managing, storing and visualizing time series data• Graphite : Real-time graphing system for numeric time-series data.• Graphana: Popular visualization library for multiple Time Series backends.

• Plethora of open source tools to monitor performance or Device Healtho top, vmstat, lsof, tcpdump , htop, iotop, monit, nagios, vmstat,

perf_events• Tracing Tools like dtrace, LTTng (Open source tracing framework for Linux.)

Page 34: Going Beyond the Device Heart Beat

Questions, Comments or Feedback

Copyright © 2015 AppDynamics. All rights reserved.

34

Page 35: Going Beyond the Device Heart Beat

SUMMARY

Copyright © 2015 AppDynamics. All rights reserved.

35

Page 36: Going Beyond the Device Heart Beat

Best Practices

Monitor Device Health Understand what device data is important Understand what device applications are important Monitor End Devices and Gateways Monitor Application Transactions Health Monitor Cloud Services Embedded Agents should meet power, security and privacy requirements Unified View of the world reduces MTTR

Page 37: Going Beyond the Device Heart Beat

Copyright © 2015 AppDynamics. All rights reserved. 37

A Heart Beat is Important.But do not be on Life Support.

Stay IoT [email protected]

Page 38: Going Beyond the Device Heart Beat

Thank You

Copyright © 2015 AppDynamics. All rights reserved.

38