SlideShare a Scribd company logo
7/15/15	
  
	
  	
  
Using Stackdriver with MongoDB
Cloud Monitoring Made Easy
Bryan Ignatow, Director of Network Engineering
27/15/15 	
  |
	
  	
  
Who is OléMedia?
•  OléMedia brings next generation television to foreign
markets through the use of innovative OTT solutions,
including:
–  Traditional TV content delivery
–  A customizable experience
–  Targeted advertising delivery
–  And advanced search capabilities
•  Any Device, Anytime
•  Currently broadcasting in the Philippines and Mexico
37/15/15 	
  |
	
  	
  
OléMedia Operations
•  Bryan Ignatow, Director of Network Engineering
–  Leads the technical operations group
–  Technical Operations is responsible for the care and feeding of:
•  Networks: Firewalls, Switches, Access Points, and other appliances
•  Network Services: DNS, Corporate and Customer Email
•  Servers: Local and Cloud-Based infrastructure
•  Cloud Services: Amazon AWS and EC2 services
•  Service Monitoring: Infrastructure, Services, Databases, and Video
–  Over 30 years of industry experience in operations
–  Over 15 years experience in high-end, mission critical
monitoring for the service provider industry
47/15/15 	
  |
	
  	
  
Why Stackdriver?
57/15/15 	
  |
	
  	
  
Why Stackdriver?
•  We chose Stackdriver since we had a large Amazon
AWS presence:
–  Amazon CloudWatch Metrics are good but we needed more
–  Amazon’s monitoring interface is very basic
–  We were wanting a single pane of glass approach
•  Stackdriver brings us this single pane of glass
–  Easy to setup
–  Starts right out of the box without agents installed
–  Consolidated information, including AWS status and costs
–  Once you install agents, the monitoring gains further depth and
detail
67/15/15 	
  |
	
  	
  
Stackdriver
Lets	
  explore	
  a	
  bit,	
  shall	
  we?	
  
77/15/15 	
  |
	
  	
  
Stackdriver Custom Metrics
•  Since Stackdriver provides the capability to inject custom
metrics, which can then leverage all the graphic and
reporting capabilities of their portal, we chose to develop a
script around MongoDB profiling:
–  Enabling profiling per database with
db.setProfilingLevel(1,100)
–  Collecting profiled transactions with db.system.profile.find()
–  Organizing the profiled transactions into aggregate metrics like
longtrans_<op>_<ns>
–  Preserving these aggregate metrics across monitoring/collection
invocations, so we can maintain zero-value lines and graphic
continuity in the reporting interface
–  Metrics injected into Stackdriver are organized by AWS Instance ID
87/15/15 	
  |
	
  	
  
Stackdriver Custom Metrics (con’t)
•  Challenges so far in the development process:
–  Profiling has been found to “turn itself off” on occasion and we
are researching why
–  We’ve optimized our queries with application server caching,
which gives us limited data to experiment with
–  The monitoring/collecting script has (as usual) become
complex, in order to provide maximum flexibility in collecting
and organizing metrics, as we didn’t know precisely what we
wanted to collect and how we wanted to organize it
–  Stackdriver only allows metrics within the last two hours to be
injected (limits testing in our development environment which is
not as busy as production)
97/15/15 	
  |
	
  	
  
Conclusion
•  Stackdriver includes a 14 day free trial and is very easy
to get started with
•  Its easy to install and configure the agent and add
monitoring for MongoDB, Apache, nginx, and Tomcat
•  The documentation is good
•  And the product looks better than most monitoring
products out there
The jury is still out as to the usefulness of custom metrics
derived from MongoDB profiling
107/15/15 	
  |
	
  	
  
Questions?
117/15/15 	
  |
	
  	
  
Simple Setup for Agent and MongoDB Monitoring
sudo curl -o /etc/apt/sources.list.d/stackdriver.list http://repo.stackdriver.com/trusty.list
curl --silent https://app.stackdriver.com/RPM-GPG-KEY-stackdriver | sudo apt-key add -
sudo apt-get update
sudo apt-get install stackdriver-agent 
python-netifaces python-psutil stackdriver-extractor
[ Enter your API Key here ]
# sudo /opt/stackdriver/stack-config --api-key <API-Key>
sudo vi /opt/stackdriver/collectd/etc/collectd.d/mongodb.conf
LoadPlugin mongodb
<Plugin "mongodb">
Host "localhost”
Port "27017”
# If you restricted access to the database, you can
# set the username and password here
# User "user_name”
# Password "user_password"
# For performance/eventually consistent trade-offs you may add this line
# PreferSecondaryQuery true
</Plugin>
sudo service stackdriver-agent restart

More Related Content

PPTX
Application Performance Monitoring (APM)
PDF
[UC4] Version and Automate Everything
PPTX
Site24x7 PHP Monitoring for DevOps
PDF
Take advantage of memory analyzer tool inside your continuous integration
PPT
UC4 SCHEDULING
PDF
Xpdays: Kubernetes CI-CD Frameworks Case Study
PDF
A Journey to CloudStack
PPTX
Using JMeter Scripts in CloudTest for Continuous Testing
Application Performance Monitoring (APM)
[UC4] Version and Automate Everything
Site24x7 PHP Monitoring for DevOps
Take advantage of memory analyzer tool inside your continuous integration
UC4 SCHEDULING
Xpdays: Kubernetes CI-CD Frameworks Case Study
A Journey to CloudStack
Using JMeter Scripts in CloudTest for Continuous Testing

What's hot (20)

PDF
Python for Network Engineers - A Practical Guide for Getting Started
PPTX
Dev ops presentation
PPTX
New relic
PDF
Basic authentication with lambda@edge, Juho Rautio, Webscale Oy
PDF
Aurea Software successful integration case study - Patient Travels (patient p...
PPTX
Dotcom monitor platform overview
PDF
PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...
PPTX
End user-experience monitoring
PPTX
.NET Fest 2018. Андрей Тарарака. Как порулить грузовиком в Австралии, находяс...
PPTX
Riyadh Meetup4- Sonarqube for Mule 4 Code review
PDF
HKNOG 6.0 Next Generation Networks - will automation put us out of jobs?
KEY
New relic
DOC
Resume 2015 SW
PDF
IPv6 Rollout to the mass market
PPTX
Add Apache Web Server to your Unified Monitoring Toolkit
PPTX
NI Week 2019 Overview
PPTX
Sysctr Track: Integrating the components of the System Center suite… The next...
PPTX
Leading infrastructure and architecture company uses NetFlow Analyzer to moni...
PPTX
Nagios Conference 2014 - Nick Winn - Using Nagios XI to Empower Your Develope...
PPTX
Adventures in Magento 2
Python for Network Engineers - A Practical Guide for Getting Started
Dev ops presentation
New relic
Basic authentication with lambda@edge, Juho Rautio, Webscale Oy
Aurea Software successful integration case study - Patient Travels (patient p...
Dotcom monitor platform overview
PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...
End user-experience monitoring
.NET Fest 2018. Андрей Тарарака. Как порулить грузовиком в Австралии, находяс...
Riyadh Meetup4- Sonarqube for Mule 4 Code review
HKNOG 6.0 Next Generation Networks - will automation put us out of jobs?
New relic
Resume 2015 SW
IPv6 Rollout to the mass market
Add Apache Web Server to your Unified Monitoring Toolkit
NI Week 2019 Overview
Sysctr Track: Integrating the components of the System Center suite… The next...
Leading infrastructure and architecture company uses NetFlow Analyzer to moni...
Nagios Conference 2014 - Nick Winn - Using Nagios XI to Empower Your Develope...
Adventures in Magento 2
Ad

Viewers also liked (6)

PPTX
Cloud monitoring功能簡介
PDF
Monitoring with Stackdriver
PDF
Logback stackdriver-loggingを作った
PDF
Developer summit 2015 gcp
PDF
Maglev: A Fast and Reliable Software Network Load Balancer
PDF
BigQueryを始めてみよう - Google Analytics データを活用する
Cloud monitoring功能簡介
Monitoring with Stackdriver
Logback stackdriver-loggingを作った
Developer summit 2015 gcp
Maglev: A Fast and Reliable Software Network Load Balancer
BigQueryを始めてみよう - Google Analytics データを活用する
Ad

Similar to Using Stackdriver with MongoDB (20)

PDF
Do it Yourself Testing
PDF
Introduction to MicroProfile Metrics
PDF
Introduction to MicroProfile Metrics
PPTX
Webinar: Keep Calm and Scale Out - A proactive guide to Monitoring MongoDB
PPTX
MongoDB and DigitalOcean Automation with Cloud Manager
PPTX
Webinar: General Technical Overview of MongoDB for Ops Teams
PPTX
Dev Jumpstart: Build Your First App with MongoDB
PDF
Infrastructure Monitoring with Postgres
PPTX
When to Use MongoDB
PPTX
Building your First MEAN App
PPTX
Internet of Things with Bosch: From Concept to Code
PPTX
Dev Jumpstart: Build Your First App with MongoDB
PPTX
Building your first MEAN application
PDF
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
PPTX
MySQL performance monitoring using Statsd and Graphite
PDF
Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...
PDF
Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...
PDF
MongoDB and the Internet of Things
PDF
Thinking DevOps in the era of the Cloud - Demi Ben-Ari
PDF
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
Do it Yourself Testing
Introduction to MicroProfile Metrics
Introduction to MicroProfile Metrics
Webinar: Keep Calm and Scale Out - A proactive guide to Monitoring MongoDB
MongoDB and DigitalOcean Automation with Cloud Manager
Webinar: General Technical Overview of MongoDB for Ops Teams
Dev Jumpstart: Build Your First App with MongoDB
Infrastructure Monitoring with Postgres
When to Use MongoDB
Building your First MEAN App
Internet of Things with Bosch: From Concept to Code
Dev Jumpstart: Build Your First App with MongoDB
Building your first MEAN application
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
MySQL performance monitoring using Statsd and Graphite
Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...
MongoDB and the Internet of Things
Thinking DevOps in the era of the Cloud - Demi Ben-Ari
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Empathic Computing: Creating Shared Understanding
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
KodekX | Application Modernization Development
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Digital-Transformation-Roadmap-for-Companies.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Per capita expenditure prediction using model stacking based on satellite ima...
MIND Revenue Release Quarter 2 2025 Press Release
The AUB Centre for AI in Media Proposal.docx
Encapsulation_ Review paper, used for researhc scholars
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Network Security Unit 5.pdf for BCA BBA.
sap open course for s4hana steps from ECC to s4
Empathic Computing: Creating Shared Understanding
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
KodekX | Application Modernization Development
Understanding_Digital_Forensics_Presentation.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
cuic standard and advanced reporting.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Advanced methodologies resolving dimensionality complications for autism neur...

Using Stackdriver with MongoDB

  • 1. 7/15/15       Using Stackdriver with MongoDB Cloud Monitoring Made Easy Bryan Ignatow, Director of Network Engineering
  • 2. 27/15/15  |     Who is OléMedia? •  OléMedia brings next generation television to foreign markets through the use of innovative OTT solutions, including: –  Traditional TV content delivery –  A customizable experience –  Targeted advertising delivery –  And advanced search capabilities •  Any Device, Anytime •  Currently broadcasting in the Philippines and Mexico
  • 3. 37/15/15  |     OléMedia Operations •  Bryan Ignatow, Director of Network Engineering –  Leads the technical operations group –  Technical Operations is responsible for the care and feeding of: •  Networks: Firewalls, Switches, Access Points, and other appliances •  Network Services: DNS, Corporate and Customer Email •  Servers: Local and Cloud-Based infrastructure •  Cloud Services: Amazon AWS and EC2 services •  Service Monitoring: Infrastructure, Services, Databases, and Video –  Over 30 years of industry experience in operations –  Over 15 years experience in high-end, mission critical monitoring for the service provider industry
  • 4. 47/15/15  |     Why Stackdriver?
  • 5. 57/15/15  |     Why Stackdriver? •  We chose Stackdriver since we had a large Amazon AWS presence: –  Amazon CloudWatch Metrics are good but we needed more –  Amazon’s monitoring interface is very basic –  We were wanting a single pane of glass approach •  Stackdriver brings us this single pane of glass –  Easy to setup –  Starts right out of the box without agents installed –  Consolidated information, including AWS status and costs –  Once you install agents, the monitoring gains further depth and detail
  • 6. 67/15/15  |     Stackdriver Lets  explore  a  bit,  shall  we?  
  • 7. 77/15/15  |     Stackdriver Custom Metrics •  Since Stackdriver provides the capability to inject custom metrics, which can then leverage all the graphic and reporting capabilities of their portal, we chose to develop a script around MongoDB profiling: –  Enabling profiling per database with db.setProfilingLevel(1,100) –  Collecting profiled transactions with db.system.profile.find() –  Organizing the profiled transactions into aggregate metrics like longtrans_<op>_<ns> –  Preserving these aggregate metrics across monitoring/collection invocations, so we can maintain zero-value lines and graphic continuity in the reporting interface –  Metrics injected into Stackdriver are organized by AWS Instance ID
  • 8. 87/15/15  |     Stackdriver Custom Metrics (con’t) •  Challenges so far in the development process: –  Profiling has been found to “turn itself off” on occasion and we are researching why –  We’ve optimized our queries with application server caching, which gives us limited data to experiment with –  The monitoring/collecting script has (as usual) become complex, in order to provide maximum flexibility in collecting and organizing metrics, as we didn’t know precisely what we wanted to collect and how we wanted to organize it –  Stackdriver only allows metrics within the last two hours to be injected (limits testing in our development environment which is not as busy as production)
  • 9. 97/15/15  |     Conclusion •  Stackdriver includes a 14 day free trial and is very easy to get started with •  Its easy to install and configure the agent and add monitoring for MongoDB, Apache, nginx, and Tomcat •  The documentation is good •  And the product looks better than most monitoring products out there The jury is still out as to the usefulness of custom metrics derived from MongoDB profiling
  • 10. 107/15/15  |     Questions?
  • 11. 117/15/15  |     Simple Setup for Agent and MongoDB Monitoring sudo curl -o /etc/apt/sources.list.d/stackdriver.list http://repo.stackdriver.com/trusty.list curl --silent https://app.stackdriver.com/RPM-GPG-KEY-stackdriver | sudo apt-key add - sudo apt-get update sudo apt-get install stackdriver-agent python-netifaces python-psutil stackdriver-extractor [ Enter your API Key here ] # sudo /opt/stackdriver/stack-config --api-key <API-Key> sudo vi /opt/stackdriver/collectd/etc/collectd.d/mongodb.conf LoadPlugin mongodb <Plugin "mongodb"> Host "localhost” Port "27017” # If you restricted access to the database, you can # set the username and password here # User "user_name” # Password "user_password" # For performance/eventually consistent trade-offs you may add this line # PreferSecondaryQuery true </Plugin> sudo service stackdriver-agent restart