World®
’16
Hands-On	Lab:	Monitor	Modern	
Applications	in	the	Cloud
Guenter	Grossberger,	Sr.	Engineering	Services	Architect,	CA	Technologies
Andreas	Reiss,	Sr.	Principal	Engineering	Services	Architect,	CA	Technologies
DO4X152L
DEVOPS	– AGILE	OPERATIONS
2 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
©	2016	CA.	All	rights	reserved.	All	trademarks	referenced	herein	belong	to	their	respective	companies.
The	content	provided	in	this CA	World	2016	presentation	is	intended	for	informational	purposes	only	and	does	not	form	any	type	of	
warranty. The information	provided	by	a	CA	partner	and/or	CA	customer	has	not	been	reviewed	for	accuracy	by	CA.	
For	Informational	Purposes	Only	
Terms	of	this	Presentation
3 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Abstract
Modern	applications	are	highly	modular,	increasingly	cloud-based	and	rely	on	
microservices for	connectivity.	 Managing	performance	in	these	highly	dynamic	
environments	can	be	challenging	but	doesn't	have	to	be.	Join	this	session	to	
understand	how	to	use	CA	APM	Extensions	for	AWS,	Docker	and	other	common	
cloud	technologies.
Guenter	
Grossberger
Andreas	
Reiss
Engineering	Services	
Architects,
CA	Technologies
CA	Technologies,	Sr.	
Engineering	Services	
Architect
4 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Agenda
MODERN	APPLICATION	ENVIRONMENTS
MONITORING	CHALLENGES
MONITORING	MODERN	APPLICATIONS
LAB:	MONITOR	APPLICATIONS	IN	DOCKER	SWARM
Q	&	A
1
2
3
4
5
5 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Applications	are	Architected	Differently
Microservices
(Agile,	loosely-coupled,	independent,	continuous	delivery)
Monolithic
(Tightly-coupled	dependent,	waterfall,	change	intolerant)
6 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Microservices:	Monitoring	Scale	&	Complexity
Microservices	Architecture	is	an	emerging	technique	which	promises	to	deliver	
flexibility	and	scalability	to	the	development	and	deployment	of	service	based	
applications
http://www.pwc.com/us/en/technology-forecast/2014/cloud-computing/features/assets/feature02-figure02.jpg
7 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Monitoring	Must	Scale with	New	Architecture
Microservices
architecture	with	
each	element	of	
functionality	in	a	
separate	service….
Scales	by	distributing	services	across	
servers,	replicating	as	needed
MICROSERVICE CONSIDERATIONS
§ Testing	across	multiple	services
§ Release	co-ordination
§ Many	moving	parts	/	multiple	instances
§ Many	new	data	stores	– SQL,	NoSQL
§ Network	latency,	messaging,	emergent	
behaviors
§ Complexity!
8 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Containers:	Monitoring	Complexity	&	Scale
Containers	include	the	application	and	all	of	its	dependencies,	but	share	the	
kernel	with	other	containers.	Docker containers	are	lightweight,	run	on	any	
computer,	on	any	infrastructure,	in	any	cloud	and	are	great	for	microservices
9 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Cloud	– Monitoring	Scale
Cloud	computing	is	about	access	to	a	pool	of	computing	resources	(servers,	
storage,	networks,	services	etc)	that	can	be	rapidly	provisioned	and	made	
available	with	minimal	overhead	– NIST
10 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Browser
Mobile
Network Web	Server
Synthetic
Transactions
SQL	
Database
API	GatewayApp	Server
Passive	EUE
(Agentless)	
Mainframe
Transaction	Performance
=	Monitoring	Agent
Microservice
Docker	Container
SSO User	Data	Store
Ability	to	trace	complex	transactions	that	traverse	the	entire	infrastructure	from	
customer-facing	systems	of	engagement	to	back-end	systems	of	record
Systems	of	
Engagement
Systems	of	
Record
11 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
E.P.I.C.	APM	
Smart	agent
• Collect	what	you	need	when	you	need	it
Monitoring	at	scale
• Monitor	@scale	and	clustering	
Ease	of	administration
• Get	control	with	CA	APM	Command	Center
Simply	visualize	large	complex	data
• CA	APM	home	page	and	Assisted	Triage	help	quickly	
identify	and	diagnose	problems	that	matter	
Elegance	@Scale
12 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
APM	Support	for	Modern	Technologies
• Monitor	apps	deployed	to	Docker	containers	with	APM	agent
• Collects	basic	container	health	metrics	(Field	Pack)
• Visualize	app	performance	and	Docker	health	in	one	view
• https://github.com/CA-APM/DockerMonitoring
• Easily	monitor	apps	deployed	using	Pivotal	Cloud	Foundry® Java	build	pack
• Collects	basic	health	metrics	from	Pivotal	Cloud	Foundry	(field	pack)
• Visibility	into	application	performance	and	Pivotal	Cloud	Foundry	health	
• Members	of	the	Cloud	Foundry	Foundation
• CA	APM	agents	are	fully	supported	and	provide	transaction	correlation,	
deep	dive	root	cause	analysis,	browser	agent	for	end	user	analytics
• Field	pack	to	report	AWS	CloudWatch data	into	CA	APM
• CA	APM	plugin	integrates	for	build	performance	comparisons	&	attribute	updates
• https://wiki.jenkins-ci.org/display/JENKINS/CA+APM+Plugin
• Node.js	agents	are	fully	supported	and	provide	transaction	correlation,	
deep	dive	root	cause	analysis,	browser	agent	for	end	user	analytics
• https://www.npmjs.com/package/ca-apm-probe
13 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Continuous	Integration/Deployment:	Monitoring	for	Resiliency	&	
Change
Continuous	integration	is	a	process	in	which	all	development	work	is	integrated	as	
early	as	possible	and	the	resulting	artifacts	are	automatically	created	and	tested.	
This	process	should	identify	errors	as	very	early	in	the	process.
Source:	http://cdn.rancher.com/wp-content/uploads/2015/11/18175501/ci_flow.png
14 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Monitoring	Modern	Applications
§ Java	and	Node.js agent	in	Docker	fully	supported
§ Java	agent	included	in	Cloud	Foundry	Java	buildpack
§ Extensions	on	the	CA	APM	Marketplace	(http://marketplace.ca.com/apm):
– Docker
– AWS
– Mongo	DB
– Jenkins
– Cloud	Foundry
15 ©	2016	CA.	ALL	RIGHTS	RESERVED.@CAWORLD				#CAWORLD
Thank	you.
Stay	connected	at	communities.ca.com
@CAWORLD					#CAWORLD ©	2016	CA.	All	RIGHTS	RESERVED.
DevOps	– Agile	Ops
For	more	information	on	DevOps	– Agile	Ops,	please	visit:	
http://cainc.to/wYXSg6

Hands-On Lab: Monitor Modern Applications in the Cloud