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

What's hot (20)

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

Viewers also liked (6)

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

Similar to Using Stackdriver with MongoDB (20)

DOC
Madhu_resume_2016
Madhusudana A
 
DOC
Rajendra Kumar Sahu_243535(Maximo 7 5 Certified )
Rajendra Kumar Sahu
 
PPTX
Enabling .NET Apps with Monitoring and Management Using Steeltoe
VMware Tanzu
 
PPTX
New ThousandEyes Product Features and Release Highlights: October 2023
ThousandEyes
 
PDF
Quality in a Square. K8s-native Quality Assurance of Microservices with Testkube
QAware GmbH
 
PDF
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Weaveworks
 
PPTX
Design and Deploy Secure Clouds for Financial Services Use Cases
PLUMgrid
 
PPTX
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...
QAware GmbH
 
PDF
New ThousandEyes Product Features and Release Highlights: March 2024
ThousandEyes
 
PDF
Whats new in microsoft desktop optimization package
Olav Tvedt
 
PDF
Aucoda - Automated Development
Aucoda
 
PDF
Gi oss offering top cell_partnership (1)
Emerson Eduardo Rodrigues Von Staffen
 
PPTX
Observability for Application Developers (1)-1.pptx
OpsTree solutions
 
PPTX
AWS Certified DevOps Engineer: What it is and how to get certified
Infosec
 
PDF
Scalable full-stack development at the edge - Pascal Wolkotte - Codemotion Am...
Codemotion
 
PPSX
CISCO: Accelerating Small Cell Deployments in the Enterprise
Small Cell Forum
 
PDF
DevOps Case Studies
WhiteHedge Technologies Inc.
 
PPTX
OpsStack--Integrated Operation Platform
ChinaNetCloud
 
PPTX
Webinar - Building Custom Extensions With AppDynamics
Todd Radel
 
Madhu_resume_2016
Madhusudana A
 
Rajendra Kumar Sahu_243535(Maximo 7 5 Certified )
Rajendra Kumar Sahu
 
Enabling .NET Apps with Monitoring and Management Using Steeltoe
VMware Tanzu
 
New ThousandEyes Product Features and Release Highlights: October 2023
ThousandEyes
 
Quality in a Square. K8s-native Quality Assurance of Microservices with Testkube
QAware GmbH
 
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Weaveworks
 
Design and Deploy Secure Clouds for Financial Services Use Cases
PLUMgrid
 
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...
QAware GmbH
 
New ThousandEyes Product Features and Release Highlights: March 2024
ThousandEyes
 
Whats new in microsoft desktop optimization package
Olav Tvedt
 
Aucoda - Automated Development
Aucoda
 
Gi oss offering top cell_partnership (1)
Emerson Eduardo Rodrigues Von Staffen
 
Observability for Application Developers (1)-1.pptx
OpsTree solutions
 
AWS Certified DevOps Engineer: What it is and how to get certified
Infosec
 
Scalable full-stack development at the edge - Pascal Wolkotte - Codemotion Am...
Codemotion
 
CISCO: Accelerating Small Cell Deployments in the Enterprise
Small Cell Forum
 
DevOps Case Studies
WhiteHedge Technologies Inc.
 
OpsStack--Integrated Operation Platform
ChinaNetCloud
 
Webinar - Building Custom Extensions With AppDynamics
Todd Radel
 
Ad

Recently uploaded (20)

PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 

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