SlideShare a Scribd company logo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Observability for
Modern Applications
Boaz Ziniman
Technical Evangelist - Amazon Web Services
@ziniman
boaz.ziniman.aws
ziniman
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ListenIterate
Experiment
Innovation
Flywheel
Experiments power the engine of rapid innovation
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What changes do you need to make to adopt these best practices?
Serverless
No provisioning/management
Automatic scaling
Pay for value billing
Availability and resiliency
Microservices
Componentization
Business capabilities
Products not projects
Infrastructure automation
DevOps
Cultural philosophies
Cross-disciplinary teams
CI/CD
Automation tools
DEV OPS
Architectural
patterns
Operational
Model
Software
Delivery
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Approaches to modern application development
• Simplify environment management with serverless technologies
• Reduce the impact of code changes with microservice architectures
• Automate operations by modeling applications & infrastructure as code
• Accelerate the delivery of new, high-quality services with CI/CD
• Gain insight across resources and applications by enabling observability
• Protect customers and the business with end-to-end security & compliance
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Approaches to modern application development
• Simplify environment management with serverless technologies
• Reduce the impact of code changes with microservice architectures
• Automate operations by modeling applications & infrastructure as code
• Accelerate the delivery of new, high-quality services with CI/CD
• Gain insight across resources and applications by enabling observability
• Protect customers and the business with end-to-end security & compliance
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Microservices increase release agility
Monolithic application Microservices
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monolith
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Service
Service
Service
Service
Service
Service
Service
Service
Service
Service
Service
Service
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Rust
Database
DB
Database
Rust
GoNode.is
Java
Node.is
Node.is
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Containers
Database
DB
Database
Containers
λContainers
VMs
Managed
Service
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Proactive operations helps mitigate issues
Degraded state
Outage
Latency
Time (ms)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Observability in Control Theory
On the General Theory of Control Systems
R. E. KALMAN
Introduction
In no small measure, the great technological progress in
automatic control and communication systems during the past
two decades has depended on advances and refinements in the
mathematical study of such systems. Conversely, the growth
of technology brought forth many new problems (such as those
related to using digital computers in control, etc.) to challenge
the ingenuity and competence of research workers concerned
with theoretical questions.
Despite the appearance and effective resolution of many new
problems, our understanding of fundamental aspects of control
has remained superficial. The only basic advance so far appears
to be the theory ofinformation created by Shannon 1. The chief
significance of his work in our present interpretation is the
discovery ofgeneral' laws' underlying the process ofinformation
transmission, which are quite independent of the particular
models being considered or even the methods used for the des-
cription and analysis of these models. These results could be
compared with the' laws' of physics, with the crucial difference
that the' laws' governing man-made objects cannot be discovered
by straightforward experimentation but only by a purely abstract
analysis guided by intuition gained in observing present-day
examples of technology and economic organization. We may
thus classify Shannon's result as belonging to the pure theory
of communication and control, while everything else can be
labelled as the applied theory; this terminology reflects the well-
known distinctions between pure and applied physics or
mathematics. For reasons pointed out above, in its methodo-
logy the pure theory of communication and control closely
resembles mathematics, rather than physics; however, it is not
a. branch of mathematics because at present we cannot (yet?)
d1sregard questions of physical realizability in the study of
mathematical models.
This paper initiates study of the pure theory of control
imitating the spirit of Shannon's investigations but
using entirely different techniques. Our ultimate objective is
to answer questions of the following type: What kind and how
much information is needed to achieve a desired type ofcontrol?
What intrinsic properties characterize a given unalterable plant
as far as control is concerned?
At present only superficial answers are available to these
questions, and even then only in special cases.
Initial results presented in this Note are far from the degree
of generality of Shannon's work. By contrast, however, only
metho?s are employed here, giving some hope of
beIng able to aVOld the well-known difficulty of Shannon's
theory: methods of proof which are impractical for actually
constructing practical solutions. In fact, this paper arose
fr.om the need for a better understanding of some recently
d1scovered computation methods of control-system syn-
thesis 2-s. Another by-product of the paper is a new com-
putation method for the solution of the classical Wiener
filtering problem 7.
The organization of the paper is as follows:
16
In Section 3 we introduce the models for which a fairly
complete theory is available: dynamic systems with a finite
dimensional state space and linear transition functions (i.e.
systems obeying linear differential or difference equations).
The class of random processes considered consists of such
dynamic systems excited by an uncorrelated gaussian random
process. Other assumptions, such as stationarity, discretiza-
tion, single input/single output, etc., are made only to facilitate
the presentation and will be absent in detailed future accounts
of the theory.
In Section 4 we define the concept of controllability and show
that this is the' natural' generalization of the so-called' dead-
beat' control scheme discovered by Oldenbourg and Sartorius 21
and later rederived independently by Tsypkin22 and the author17•
We then show in Section 5 that the general problem ofoptimal
regulation is solvable if and only if the plant is completely
controllable.
In Section 6 we introduce the concept of observability and
solve the problem ofreconstructing unmeasurable state variables
from the measurable ones in the minimum possible length of
time.
We formalize the similarities between controllability and
observability in Section 7 by means of the Principle of Duality
and show that the Wiener filtering problem is the natural dual
of the problem of optimal regulation.
Section 8 is a brief discussion of possible generalizations and
currently unsolved problems of the pure theory of control.
Notation and Terminology
The reader is assumed to be familiar with elements of linear
algebra, as discussed, for instance, by Halmos 8.
Consider an n-dimensional real vector space X. A basis in
X is a set of vectors at ... , all in X such that any vector x in X
can be written uniquely as
(I)
the Xi being real numbers, the components or coordinates of x.
Vectors will be denoted throughout by small bold-face letters.
The set X* of all real-valued linear functions x* (= covec-
tors) on X. with the' natural' definition of addition and scalar
multiplication, is an n-dimensional vector space. The value of
a covector y* at any vector x is denoted by [y*, x]. We call
this the inner product of y* by x. The vector space X* has a
natural basis a*1... , a*n associated with a given basis in X;
it is defined by the requirement that
[a*j, aj] = Ojj
Using the' orthogonality relation' 2, we may write
form n
X = L [a*j, x]aj
j= t
which will be used frequently.
(2)
in the
(3)
For purposes of numerical computation, a vector may be
considered a matrix with one column and a covector a matrix
481
491
J.S.I.A.M. CONTROI
Ser. A, Vol. 1, No.
Printed in U.,q.A., 1963
MATHEMATICAL DESCRIPTION OF LINEAR
DYNAMICAL SYSTEMS*
R. E. KALMAN
Abstract. There are two different ways of describing dynamical systems: (i) by
means of state w.riables and (if) by input/output relations. The first method may be
regarded as an axiomatization of Newton’s laws of mechanics and is taken to be the
basic definition of a system.
It is then shown (in the linear case) that the input/output relations determine
only one prt of a system, that which is completely observable and completely con-
trollable. Using the theory of controllability and observability, methods are given
for calculating irreducible realizations of a given impulse-response matrix. In par-
ticular, an explicit procedure is given to determine the minimal number of state
varibles necessary to realize a given transfer-function matrix. Difficulties arising
from the use of reducible realizations are discussed briefly.
1. Introduction and summary. Recent developments in optimM control
system theory are bsed on vector differential equations as models of
physical systems. In the older literature on control theory, however, the
same systems are modeled by ransfer functions (i.e., by the Laplace trans-
forms of the differential equations relating the inputs to the outputs). Two
differet languages have arisen, both of which purport to talk about the
same problem. In the new approach, we talk about state variables, tran-
sition equations, etc., and make constant use of abstract linear algebra.
In the old approach, the key words are frequency response, pole-zero pat-
terns, etc., and the main mathematical tool is complex function theory.
Is there really a difference between the new and the old? Precisely what
are the relations between (linear) vector differential equations and transfer-
functions? In the literature, this question is surrounded by confusion [1].
This is bad. Communication between research workers and engineers is
impeded. Important results of the "old theory" are not yet fully integrated
into the new theory.
In the writer’s view--which will be argued t length in this paperthe
diiIiculty is due to insufficient appreciation of the concept of a dynamical
system. Control theory is supposed to deal with physical systems, and not
merely with mathematical objects such as a differential equation or a trans-
fer function. We must therefore pay careful attention to the relationship
between physical systems and their representation via differential equations,
transfer functions, etc.
* Received by the editors July 7, 1962 and in revised form December 9, 1962.
Presented at the Symposium on Multivariable System Theory, SIAM, November 1,
1962 at Cambridge, Massachusetts.
This research was supported in part under U. S. Air Force Contracts AF 49 (638)-382
and AF 33(616)-6952 as well as NASA Contract NASr-103.
Research Institute for Advanced Studies (RIAS), Baltimore 12, Maryland.
152
Downloaded11/11/13to152.3.159.32.RedistributionsubjecttoSIAMlicenseorcopyright;seehttp://www.siam.org/journals/ojsa.php
1961-62
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Observability
In control theory, observability is a measure of
how well internal states of a system
can be inferred from knowledge
of its external outputs.
https://en.wikipedia.org/wiki/Observability
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Understand performance…
Systems Performance by Brendan Gregg
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Understand performance… and latency…
Systems Performance by Brendan Gregg
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Understand performance… and latency… and percentiles!
P50
P90
P99
P100
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Levels of Observability
Network
Machine (HW, OS)
Application
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Three Pillars of Observability
Distributed Systems Observability by Cindy Sridharan
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Three Pillars of Observability
Event Logs Metrics Tracing
Distributed Systems Observability by Cindy Sridharan
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability
Event Logs Metrics Tracing
Log aggregation
& analytics
VisualizationsAlerting
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Observability on AWS
CloudWatch
Logs
CloudWatch
Metrics
AWS
X-Ray
Traces
CloudWatch
Insights
CloudWatch
Dashboard
CloudWatch
Alarms
AWS X-Ray
ServiceGraph
CloudWatch
Metric Filter
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CloudWatch API PutMetricData
const metricData = await cloudWatch.putMetricData({
MetricData: [
{
MetricName: 'My Business Metric',
Dimensions: [
{
Name: 'Location',
Value: 'Paris'
}
],
Timestamp: new Date,
Value: 123.4
}
],
Namespace: METRIC_NAMESPACE
}).promise();
• Metric name
• Dimensions
• Timestamp
• Value
• Namespace
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
End-to-end tracing – AWS X-Ray Traces
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS X-Ray Key Concepts
Segments
Subsegments
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
End-to-end tracing – AWS X-Ray Service Map
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enabling X-Ray tracing
AWS Lambda
Console
Amazon
API Gateway
Console
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enabling X-Ray tracing in your code
const AWS = require('aws-sdk');
const AWSXRay = require('aws-xray-sdk');
const AWS = AWSXRay.captureAWS(require('aws-sdk'));
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enabling X-Ray tracing in your code
const AWSXRay = require('aws-xray-sdk’);
const app = express();
app.use(AWSXRay.express.openSegment('my-segment'));
app.get('/send', function (req, res) {
res.setHeader('Content-Type', 'application/json’);
res.send('{"hello": "world"}');
});
app.use(AWSXRay.express.closeSegment());
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Takeaways
1. Build the instrumentation you need to understand what is happening
in your (distributed) application
2. Use technical and business metrics together to get better insights
3. Use correlation IDs in log and tracing frameworks to understand
distributed architectures (microservices)
4. Think at scale and plan for system growth
Thank you!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Boaz Ziniman
Technical Evangelist - Amazon Web Services
@ziniman
boaz.ziniman.aws
ziniman

More Related Content

What's hot

Observability vs APM vs Monitoring Comparison
Observability vs APM vs  Monitoring ComparisonObservability vs APM vs  Monitoring Comparison
Observability vs APM vs Monitoring Comparison
jeetendra mandal
 
Observability at Scale
Observability at Scale Observability at Scale
Observability at Scale
Knoldus Inc.
 
Observability, what, why and how
Observability, what, why and howObservability, what, why and how
Observability, what, why and how
Neeraj Bagga
 
Observability
Observability Observability
Observability
Enes Altınok
 
Observability in the world of microservices
Observability in the world of microservicesObservability in the world of microservices
Observability in the world of microservices
Chandresh Pancholi
 
Observability
ObservabilityObservability
Observability
Diego Pacheco
 
Observability
ObservabilityObservability
Observability
Ebru Cucen Çüçen
 
Monitoring and observability
Monitoring and observabilityMonitoring and observability
Monitoring and observability
Theo Schlossnagle
 
Improve monitoring and observability for kubernetes with oss tools
Improve monitoring and observability for kubernetes with oss toolsImprove monitoring and observability for kubernetes with oss tools
Improve monitoring and observability for kubernetes with oss tools
Nilesh Gule
 
Do You Really Need to Evolve From Monitoring to Observability?
Do You Really Need to Evolve From Monitoring to Observability?Do You Really Need to Evolve From Monitoring to Observability?
Do You Really Need to Evolve From Monitoring to Observability?
Splunk
 
Monitoring and observability
Monitoring and observabilityMonitoring and observability
Monitoring and observability
Danylenko Max
 
Observability & Datadog
Observability & DatadogObservability & Datadog
Observability & Datadog
JamesAnderson599331
 
Observability
ObservabilityObservability
Observability
Martin Gross
 
Road to (Enterprise) Observability
Road to (Enterprise) ObservabilityRoad to (Enterprise) Observability
Road to (Enterprise) Observability
Christoph Engelbert
 
Observability for Modern Applications (CON306-R1) - AWS re:Invent 2018
Observability for Modern Applications (CON306-R1) - AWS re:Invent 2018Observability for Modern Applications (CON306-R1) - AWS re:Invent 2018
Observability for Modern Applications (CON306-R1) - AWS re:Invent 2018
Amazon Web Services
 
Principles of System Observability
Principles of System Observability Principles of System Observability
Principles of System Observability
Janis Orlovs
 
.conf Go 2022 - Observability Session
.conf Go 2022 - Observability Session.conf Go 2022 - Observability Session
.conf Go 2022 - Observability Session
Splunk
 
Datadog: From a single product to a growing platform by Alexis Lê-Quôc, CTO
Datadog: From a single product to a growing platform by Alexis Lê-Quôc, CTODatadog: From a single product to a growing platform by Alexis Lê-Quôc, CTO
Datadog: From a single product to a growing platform by Alexis Lê-Quôc, CTO
TheFamily
 
Observability; a gentle introduction
Observability; a gentle introductionObservability; a gentle introduction
Observability; a gentle introduction
Bram Vogelaar
 
Elastic Observability keynote
Elastic Observability keynoteElastic Observability keynote
Elastic Observability keynote
Elasticsearch
 

What's hot (20)

Observability vs APM vs Monitoring Comparison
Observability vs APM vs  Monitoring ComparisonObservability vs APM vs  Monitoring Comparison
Observability vs APM vs Monitoring Comparison
 
Observability at Scale
Observability at Scale Observability at Scale
Observability at Scale
 
Observability, what, why and how
Observability, what, why and howObservability, what, why and how
Observability, what, why and how
 
Observability
Observability Observability
Observability
 
Observability in the world of microservices
Observability in the world of microservicesObservability in the world of microservices
Observability in the world of microservices
 
Observability
ObservabilityObservability
Observability
 
Observability
ObservabilityObservability
Observability
 
Monitoring and observability
Monitoring and observabilityMonitoring and observability
Monitoring and observability
 
Improve monitoring and observability for kubernetes with oss tools
Improve monitoring and observability for kubernetes with oss toolsImprove monitoring and observability for kubernetes with oss tools
Improve monitoring and observability for kubernetes with oss tools
 
Do You Really Need to Evolve From Monitoring to Observability?
Do You Really Need to Evolve From Monitoring to Observability?Do You Really Need to Evolve From Monitoring to Observability?
Do You Really Need to Evolve From Monitoring to Observability?
 
Monitoring and observability
Monitoring and observabilityMonitoring and observability
Monitoring and observability
 
Observability & Datadog
Observability & DatadogObservability & Datadog
Observability & Datadog
 
Observability
ObservabilityObservability
Observability
 
Road to (Enterprise) Observability
Road to (Enterprise) ObservabilityRoad to (Enterprise) Observability
Road to (Enterprise) Observability
 
Observability for Modern Applications (CON306-R1) - AWS re:Invent 2018
Observability for Modern Applications (CON306-R1) - AWS re:Invent 2018Observability for Modern Applications (CON306-R1) - AWS re:Invent 2018
Observability for Modern Applications (CON306-R1) - AWS re:Invent 2018
 
Principles of System Observability
Principles of System Observability Principles of System Observability
Principles of System Observability
 
.conf Go 2022 - Observability Session
.conf Go 2022 - Observability Session.conf Go 2022 - Observability Session
.conf Go 2022 - Observability Session
 
Datadog: From a single product to a growing platform by Alexis Lê-Quôc, CTO
Datadog: From a single product to a growing platform by Alexis Lê-Quôc, CTODatadog: From a single product to a growing platform by Alexis Lê-Quôc, CTO
Datadog: From a single product to a growing platform by Alexis Lê-Quôc, CTO
 
Observability; a gentle introduction
Observability; a gentle introductionObservability; a gentle introduction
Observability; a gentle introduction
 
Elastic Observability keynote
Elastic Observability keynoteElastic Observability keynote
Elastic Observability keynote
 

Similar to Observability for modern applications

ObservabilityForModernApplications-Oslo.pdf
ObservabilityForModernApplications-Oslo.pdfObservabilityForModernApplications-Oslo.pdf
ObservabilityForModernApplications-Oslo.pdf
Amazon Web Services
 
ObservabilityForModernApplications_Stockholm.pdf
ObservabilityForModernApplications_Stockholm.pdfObservabilityForModernApplications_Stockholm.pdf
ObservabilityForModernApplications_Stockholm.pdf
Amazon Web Services
 
Discrete event systems comprise of discrete state spaces and event
Discrete event systems comprise of discrete state spaces and eventDiscrete event systems comprise of discrete state spaces and event
Discrete event systems comprise of discrete state spaces and event
Nitish Nagar
 
Unit-1 Mod-Sim.ppt
Unit-1 Mod-Sim.pptUnit-1 Mod-Sim.ppt
Unit-1 Mod-Sim.ppt
DEVANGBAJPAI2
 
Event-Driven, Client-Server Archetypes for E-Commerce
Event-Driven, Client-Server Archetypes for E-CommerceEvent-Driven, Client-Server Archetypes for E-Commerce
Event-Driven, Client-Server Archetypes for E-Commerce
ijtsrd
 
Hedging Predictions in Machine Learning
Hedging Predictions in Machine LearningHedging Predictions in Machine Learning
Hedging Predictions in Machine Learning
butest
 
Verification and validation of knowledge bases using test cases generated by ...
Verification and validation of knowledge bases using test cases generated by ...Verification and validation of knowledge bases using test cases generated by ...
Verification and validation of knowledge bases using test cases generated by ...
Waqas Tariq
 
Cybernetics in supply chain management
Cybernetics in supply chain managementCybernetics in supply chain management
Cybernetics in supply chain management
Luis Cabrera
 
01. Birta L. G., Arbez G. - Modelling and Simulation_ (2007).pdf
01. Birta L. G., Arbez G. - Modelling and Simulation_  (2007).pdf01. Birta L. G., Arbez G. - Modelling and Simulation_  (2007).pdf
01. Birta L. G., Arbez G. - Modelling and Simulation_ (2007).pdf
AftaZani1
 
Constructing Operating Systems and E-Commerce
Constructing Operating Systems and E-CommerceConstructing Operating Systems and E-Commerce
Constructing Operating Systems and E-Commerce
IJARIIT
 
Modeling, analysis, and control of dynamic systems
Modeling, analysis, and control of dynamic systemsModeling, analysis, and control of dynamic systems
Modeling, analysis, and control of dynamic systems
JACKSON SIMOES
 
Machine Learning for the System Administrator
Machine Learning for the System AdministratorMachine Learning for the System Administrator
Machine Learning for the System Administrator
butest
 
A Review of Constraint Programming
A Review of Constraint ProgrammingA Review of Constraint Programming
A Review of Constraint Programming
Editor IJCATR
 
Scimakelatex.93126.cocoon.bobbin
Scimakelatex.93126.cocoon.bobbinScimakelatex.93126.cocoon.bobbin
Scimakelatex.93126.cocoon.bobbin
Agostino_Marchetti
 
kalman_maybeck_ch1.pdf
kalman_maybeck_ch1.pdfkalman_maybeck_ch1.pdf
kalman_maybeck_ch1.pdf
LeonardoMMarques
 
Performance Comparision of Machine Learning Algorithms
Performance Comparision of Machine Learning AlgorithmsPerformance Comparision of Machine Learning Algorithms
Performance Comparision of Machine Learning Algorithms
Dinusha Dilanka
 
TOWARD ORGANIC COMPUTING APPROACH FOR CYBERNETIC RESPONSIVE ENVIRONMENT
TOWARD ORGANIC COMPUTING APPROACH FOR CYBERNETIC RESPONSIVE ENVIRONMENTTOWARD ORGANIC COMPUTING APPROACH FOR CYBERNETIC RESPONSIVE ENVIRONMENT
TOWARD ORGANIC COMPUTING APPROACH FOR CYBERNETIC RESPONSIVE ENVIRONMENT
ijasa
 
Building a new CTL model checker using Web Services
Building a new CTL model checker using Web ServicesBuilding a new CTL model checker using Web Services
Building a new CTL model checker using Web Services
infopapers
 
Fake gyarmathyvarasdi
Fake gyarmathyvarasdiFake gyarmathyvarasdi
Fake gyarmathyvarasdi
Eva Gyarmathy
 
Entropy 12-02268-v2
Entropy 12-02268-v2Entropy 12-02268-v2
Entropy 12-02268-v2
CAA Sudan
 

Similar to Observability for modern applications (20)

ObservabilityForModernApplications-Oslo.pdf
ObservabilityForModernApplications-Oslo.pdfObservabilityForModernApplications-Oslo.pdf
ObservabilityForModernApplications-Oslo.pdf
 
ObservabilityForModernApplications_Stockholm.pdf
ObservabilityForModernApplications_Stockholm.pdfObservabilityForModernApplications_Stockholm.pdf
ObservabilityForModernApplications_Stockholm.pdf
 
Discrete event systems comprise of discrete state spaces and event
Discrete event systems comprise of discrete state spaces and eventDiscrete event systems comprise of discrete state spaces and event
Discrete event systems comprise of discrete state spaces and event
 
Unit-1 Mod-Sim.ppt
Unit-1 Mod-Sim.pptUnit-1 Mod-Sim.ppt
Unit-1 Mod-Sim.ppt
 
Event-Driven, Client-Server Archetypes for E-Commerce
Event-Driven, Client-Server Archetypes for E-CommerceEvent-Driven, Client-Server Archetypes for E-Commerce
Event-Driven, Client-Server Archetypes for E-Commerce
 
Hedging Predictions in Machine Learning
Hedging Predictions in Machine LearningHedging Predictions in Machine Learning
Hedging Predictions in Machine Learning
 
Verification and validation of knowledge bases using test cases generated by ...
Verification and validation of knowledge bases using test cases generated by ...Verification and validation of knowledge bases using test cases generated by ...
Verification and validation of knowledge bases using test cases generated by ...
 
Cybernetics in supply chain management
Cybernetics in supply chain managementCybernetics in supply chain management
Cybernetics in supply chain management
 
01. Birta L. G., Arbez G. - Modelling and Simulation_ (2007).pdf
01. Birta L. G., Arbez G. - Modelling and Simulation_  (2007).pdf01. Birta L. G., Arbez G. - Modelling and Simulation_  (2007).pdf
01. Birta L. G., Arbez G. - Modelling and Simulation_ (2007).pdf
 
Constructing Operating Systems and E-Commerce
Constructing Operating Systems and E-CommerceConstructing Operating Systems and E-Commerce
Constructing Operating Systems and E-Commerce
 
Modeling, analysis, and control of dynamic systems
Modeling, analysis, and control of dynamic systemsModeling, analysis, and control of dynamic systems
Modeling, analysis, and control of dynamic systems
 
Machine Learning for the System Administrator
Machine Learning for the System AdministratorMachine Learning for the System Administrator
Machine Learning for the System Administrator
 
A Review of Constraint Programming
A Review of Constraint ProgrammingA Review of Constraint Programming
A Review of Constraint Programming
 
Scimakelatex.93126.cocoon.bobbin
Scimakelatex.93126.cocoon.bobbinScimakelatex.93126.cocoon.bobbin
Scimakelatex.93126.cocoon.bobbin
 
kalman_maybeck_ch1.pdf
kalman_maybeck_ch1.pdfkalman_maybeck_ch1.pdf
kalman_maybeck_ch1.pdf
 
Performance Comparision of Machine Learning Algorithms
Performance Comparision of Machine Learning AlgorithmsPerformance Comparision of Machine Learning Algorithms
Performance Comparision of Machine Learning Algorithms
 
TOWARD ORGANIC COMPUTING APPROACH FOR CYBERNETIC RESPONSIVE ENVIRONMENT
TOWARD ORGANIC COMPUTING APPROACH FOR CYBERNETIC RESPONSIVE ENVIRONMENTTOWARD ORGANIC COMPUTING APPROACH FOR CYBERNETIC RESPONSIVE ENVIRONMENT
TOWARD ORGANIC COMPUTING APPROACH FOR CYBERNETIC RESPONSIVE ENVIRONMENT
 
Building a new CTL model checker using Web Services
Building a new CTL model checker using Web ServicesBuilding a new CTL model checker using Web Services
Building a new CTL model checker using Web Services
 
Fake gyarmathyvarasdi
Fake gyarmathyvarasdiFake gyarmathyvarasdi
Fake gyarmathyvarasdi
 
Entropy 12-02268-v2
Entropy 12-02268-v2Entropy 12-02268-v2
Entropy 12-02268-v2
 

Recently uploaded

OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
DDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systemsDDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systems
Gerardo Pardo-Castellote
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Undress Baby
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
Remote DBA Services
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 

Recently uploaded (20)

OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
DDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systemsDDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systems
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 

Observability for modern applications

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Observability for Modern Applications Boaz Ziniman Technical Evangelist - Amazon Web Services @ziniman boaz.ziniman.aws ziniman
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ListenIterate Experiment Innovation Flywheel Experiments power the engine of rapid innovation
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. What changes do you need to make to adopt these best practices? Serverless No provisioning/management Automatic scaling Pay for value billing Availability and resiliency Microservices Componentization Business capabilities Products not projects Infrastructure automation DevOps Cultural philosophies Cross-disciplinary teams CI/CD Automation tools DEV OPS Architectural patterns Operational Model Software Delivery
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Approaches to modern application development • Simplify environment management with serverless technologies • Reduce the impact of code changes with microservice architectures • Automate operations by modeling applications & infrastructure as code • Accelerate the delivery of new, high-quality services with CI/CD • Gain insight across resources and applications by enabling observability • Protect customers and the business with end-to-end security & compliance
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Approaches to modern application development • Simplify environment management with serverless technologies • Reduce the impact of code changes with microservice architectures • Automate operations by modeling applications & infrastructure as code • Accelerate the delivery of new, high-quality services with CI/CD • Gain insight across resources and applications by enabling observability • Protect customers and the business with end-to-end security & compliance
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Microservices increase release agility Monolithic application Microservices
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monolith
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Service Service Service Service Service Service Service Service Service Service Service Service
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Rust Database DB Database Rust GoNode.is Java Node.is Node.is
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Containers Database DB Database Containers λContainers VMs Managed Service
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Proactive operations helps mitigate issues Degraded state Outage Latency Time (ms)
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Observability in Control Theory On the General Theory of Control Systems R. E. KALMAN Introduction In no small measure, the great technological progress in automatic control and communication systems during the past two decades has depended on advances and refinements in the mathematical study of such systems. Conversely, the growth of technology brought forth many new problems (such as those related to using digital computers in control, etc.) to challenge the ingenuity and competence of research workers concerned with theoretical questions. Despite the appearance and effective resolution of many new problems, our understanding of fundamental aspects of control has remained superficial. The only basic advance so far appears to be the theory ofinformation created by Shannon 1. The chief significance of his work in our present interpretation is the discovery ofgeneral' laws' underlying the process ofinformation transmission, which are quite independent of the particular models being considered or even the methods used for the des- cription and analysis of these models. These results could be compared with the' laws' of physics, with the crucial difference that the' laws' governing man-made objects cannot be discovered by straightforward experimentation but only by a purely abstract analysis guided by intuition gained in observing present-day examples of technology and economic organization. We may thus classify Shannon's result as belonging to the pure theory of communication and control, while everything else can be labelled as the applied theory; this terminology reflects the well- known distinctions between pure and applied physics or mathematics. For reasons pointed out above, in its methodo- logy the pure theory of communication and control closely resembles mathematics, rather than physics; however, it is not a. branch of mathematics because at present we cannot (yet?) d1sregard questions of physical realizability in the study of mathematical models. This paper initiates study of the pure theory of control imitating the spirit of Shannon's investigations but using entirely different techniques. Our ultimate objective is to answer questions of the following type: What kind and how much information is needed to achieve a desired type ofcontrol? What intrinsic properties characterize a given unalterable plant as far as control is concerned? At present only superficial answers are available to these questions, and even then only in special cases. Initial results presented in this Note are far from the degree of generality of Shannon's work. By contrast, however, only metho?s are employed here, giving some hope of beIng able to aVOld the well-known difficulty of Shannon's theory: methods of proof which are impractical for actually constructing practical solutions. In fact, this paper arose fr.om the need for a better understanding of some recently d1scovered computation methods of control-system syn- thesis 2-s. Another by-product of the paper is a new com- putation method for the solution of the classical Wiener filtering problem 7. The organization of the paper is as follows: 16 In Section 3 we introduce the models for which a fairly complete theory is available: dynamic systems with a finite dimensional state space and linear transition functions (i.e. systems obeying linear differential or difference equations). The class of random processes considered consists of such dynamic systems excited by an uncorrelated gaussian random process. Other assumptions, such as stationarity, discretiza- tion, single input/single output, etc., are made only to facilitate the presentation and will be absent in detailed future accounts of the theory. In Section 4 we define the concept of controllability and show that this is the' natural' generalization of the so-called' dead- beat' control scheme discovered by Oldenbourg and Sartorius 21 and later rederived independently by Tsypkin22 and the author17• We then show in Section 5 that the general problem ofoptimal regulation is solvable if and only if the plant is completely controllable. In Section 6 we introduce the concept of observability and solve the problem ofreconstructing unmeasurable state variables from the measurable ones in the minimum possible length of time. We formalize the similarities between controllability and observability in Section 7 by means of the Principle of Duality and show that the Wiener filtering problem is the natural dual of the problem of optimal regulation. Section 8 is a brief discussion of possible generalizations and currently unsolved problems of the pure theory of control. Notation and Terminology The reader is assumed to be familiar with elements of linear algebra, as discussed, for instance, by Halmos 8. Consider an n-dimensional real vector space X. A basis in X is a set of vectors at ... , all in X such that any vector x in X can be written uniquely as (I) the Xi being real numbers, the components or coordinates of x. Vectors will be denoted throughout by small bold-face letters. The set X* of all real-valued linear functions x* (= covec- tors) on X. with the' natural' definition of addition and scalar multiplication, is an n-dimensional vector space. The value of a covector y* at any vector x is denoted by [y*, x]. We call this the inner product of y* by x. The vector space X* has a natural basis a*1... , a*n associated with a given basis in X; it is defined by the requirement that [a*j, aj] = Ojj Using the' orthogonality relation' 2, we may write form n X = L [a*j, x]aj j= t which will be used frequently. (2) in the (3) For purposes of numerical computation, a vector may be considered a matrix with one column and a covector a matrix 481 491 J.S.I.A.M. CONTROI Ser. A, Vol. 1, No. Printed in U.,q.A., 1963 MATHEMATICAL DESCRIPTION OF LINEAR DYNAMICAL SYSTEMS* R. E. KALMAN Abstract. There are two different ways of describing dynamical systems: (i) by means of state w.riables and (if) by input/output relations. The first method may be regarded as an axiomatization of Newton’s laws of mechanics and is taken to be the basic definition of a system. It is then shown (in the linear case) that the input/output relations determine only one prt of a system, that which is completely observable and completely con- trollable. Using the theory of controllability and observability, methods are given for calculating irreducible realizations of a given impulse-response matrix. In par- ticular, an explicit procedure is given to determine the minimal number of state varibles necessary to realize a given transfer-function matrix. Difficulties arising from the use of reducible realizations are discussed briefly. 1. Introduction and summary. Recent developments in optimM control system theory are bsed on vector differential equations as models of physical systems. In the older literature on control theory, however, the same systems are modeled by ransfer functions (i.e., by the Laplace trans- forms of the differential equations relating the inputs to the outputs). Two differet languages have arisen, both of which purport to talk about the same problem. In the new approach, we talk about state variables, tran- sition equations, etc., and make constant use of abstract linear algebra. In the old approach, the key words are frequency response, pole-zero pat- terns, etc., and the main mathematical tool is complex function theory. Is there really a difference between the new and the old? Precisely what are the relations between (linear) vector differential equations and transfer- functions? In the literature, this question is surrounded by confusion [1]. This is bad. Communication between research workers and engineers is impeded. Important results of the "old theory" are not yet fully integrated into the new theory. In the writer’s view--which will be argued t length in this paperthe diiIiculty is due to insufficient appreciation of the concept of a dynamical system. Control theory is supposed to deal with physical systems, and not merely with mathematical objects such as a differential equation or a trans- fer function. We must therefore pay careful attention to the relationship between physical systems and their representation via differential equations, transfer functions, etc. * Received by the editors July 7, 1962 and in revised form December 9, 1962. Presented at the Symposium on Multivariable System Theory, SIAM, November 1, 1962 at Cambridge, Massachusetts. This research was supported in part under U. S. Air Force Contracts AF 49 (638)-382 and AF 33(616)-6952 as well as NASA Contract NASr-103. Research Institute for Advanced Studies (RIAS), Baltimore 12, Maryland. 152 Downloaded11/11/13to152.3.159.32.RedistributionsubjecttoSIAMlicenseorcopyright;seehttp://www.siam.org/journals/ojsa.php 1961-62
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Observability In control theory, observability is a measure of how well internal states of a system can be inferred from knowledge of its external outputs. https://en.wikipedia.org/wiki/Observability
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Understand performance… Systems Performance by Brendan Gregg
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Understand performance… and latency… Systems Performance by Brendan Gregg
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Understand performance… and latency… and percentiles! P50 P90 P99 P100
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Levels of Observability Network Machine (HW, OS) Application
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The Three Pillars of Observability Distributed Systems Observability by Cindy Sridharan
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The Three Pillars of Observability Event Logs Metrics Tracing Distributed Systems Observability by Cindy Sridharan
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability Event Logs Metrics Tracing Log aggregation & analytics VisualizationsAlerting
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Observability on AWS CloudWatch Logs CloudWatch Metrics AWS X-Ray Traces CloudWatch Insights CloudWatch Dashboard CloudWatch Alarms AWS X-Ray ServiceGraph CloudWatch Metric Filter
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. CloudWatch API PutMetricData const metricData = await cloudWatch.putMetricData({ MetricData: [ { MetricName: 'My Business Metric', Dimensions: [ { Name: 'Location', Value: 'Paris' } ], Timestamp: new Date, Value: 123.4 } ], Namespace: METRIC_NAMESPACE }).promise(); • Metric name • Dimensions • Timestamp • Value • Namespace
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. End-to-end tracing – AWS X-Ray Traces
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS X-Ray Key Concepts Segments Subsegments
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. End-to-end tracing – AWS X-Ray Service Map
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Enabling X-Ray tracing AWS Lambda Console Amazon API Gateway Console
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Enabling X-Ray tracing in your code const AWS = require('aws-sdk'); const AWSXRay = require('aws-xray-sdk'); const AWS = AWSXRay.captureAWS(require('aws-sdk'));
  • 28. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Enabling X-Ray tracing in your code const AWSXRay = require('aws-xray-sdk’); const app = express(); app.use(AWSXRay.express.openSegment('my-segment')); app.get('/send', function (req, res) { res.setHeader('Content-Type', 'application/json’); res.send('{"hello": "world"}'); }); app.use(AWSXRay.express.closeSegment());
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Takeaways 1. Build the instrumentation you need to understand what is happening in your (distributed) application 2. Use technical and business metrics together to get better insights 3. Use correlation IDs in log and tracing frameworks to understand distributed architectures (microservices) 4. Think at scale and plan for system growth
  • 30. Thank you! © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Boaz Ziniman Technical Evangelist - Amazon Web Services @ziniman boaz.ziniman.aws ziniman