+ All Categories
Home > Technology > Monitoring with Stackdriver

Monitoring with Stackdriver

Date post: 28-Jun-2015
Category:
Upload: denise-stockman
View: 1,258 times
Download: 0 times
Share this document with a friend
Description:
A presentation on how we came to find Stackdriver for system and service monitoring, how we implemented it and how we use it on a day to day basis.
Popular Tags:
24
Monitoring with Stackdriver Or: How I Learned How to Stop Worrying and Dig Hosted Monitoring. denise stockman - [email protected]
Transcript
Page 1: Monitoring with Stackdriver

Monitoring with StackdriverOr: How I Learned How to Stop Worrying and Dig Hosted Monitoring.

denise stockman - [email protected]

Page 2: Monitoring with Stackdriver

Mad PropsThanks to Coupa for hosting and to Stackdriver for sponsoring and to Advanced AWS for organizing.

Page 3: Monitoring with Stackdriver

Hi, I’m denise● System Architect @ Maverix Biomics● 18 years button pushing● Musical Chair Champion● Data center to cloud● Early Stackdriver user &

puppet module maintainer

Page 4: Monitoring with Stackdriver

What is Stackdriver?“Intelligent Monitoring for your AWS Infrastructure, Systems and App”

Page 5: Monitoring with Stackdriver

Agenda● The Environment● Selection Process● Implementation● Day to Day● TODO● Questions

Page 6: Monitoring with Stackdriver

A Diverse Stack

Page 7: Monitoring with Stackdriver

Further Context● Green field!● We treat instances like cattle*● Modern and crusty backend services● “Quaint” team● Monitor & report system, service, event and application

statistics in one place.

* As much as possible

Page 8: Monitoring with Stackdriver

What to do for monitoring?Evaluate & Select● In-house or hosted?● Modern vs proven?● Specialized vs general?● Paid vs free?

Page 9: Monitoring with Stackdriver

Let’s Be Honest● Not enough time● Small environment● More important work to do● Everyone else is doing it

Page 10: Monitoring with Stackdriver

Winner, Winner, Chicken Dinner

● System & service metrics● Alerting● Custom metrics & annotations● collectd agent● Anomaly detection● AWS integration & cloud friendly● Cost per resource

Page 11: Monitoring with Stackdriver

Implementation

Page 12: Monitoring with Stackdriver

Consistent Resource NamingResource name format

env-function-id.location.domain.com

Tags for resources

env, owner, purpose, version

Page 13: Monitoring with Stackdriver

Agent Deployment

node /^dev-redis.*\.stockmans\.org$/ { class { "stackdriver::redis": stackdriver_redis_port => 6379, stackdriver_redis_host => localhost, stackdriver_redis_timeout => 2000, }}

● Installs base agent on all hosts● Configures API key● Includes plugins for supported services● Auto-upgrades agent

Page 14: Monitoring with Stackdriver

● Create groups based on filtering criteria● Dashboards auto-created for each group● Groups used in custom dashboarding and alerting policies● Set it once and fuggetaboutit*

Groups

Page 15: Monitoring with Stackdriver

Alerting

Page 16: Monitoring with Stackdriver

Day to Day Use

Page 17: Monitoring with Stackdriver

Custom Dashboards

Page 18: Monitoring with Stackdriver

Anomaly Detection

Page 19: Monitoring with Stackdriver

Event Correlation

Page 20: Monitoring with Stackdriver

Event Logging

Page 21: Monitoring with Stackdriver

Annotations

curl -X POST -H "x-stackdriver-apikey: DOOOOWEEEEOOOO" -H "Content-Type: application/json" -d '{"message":"Mind taking!", "annotated_by":"Mentok"}' https://event-gateway.stackdriver.com/v1/annotationevent

Page 22: Monitoring with Stackdriver

Custom Metrics

Ruby examplecustomer_id = 31337api_key = "DOOOOWEEEEOOOO"StackDriver.init customer_id, api_key

redis = Redis.newmindsTaken = redis.zcard("minds:taken")

StackDriver.send_metric "mentok.minds.taken", mindsTaken, Time.now.to_i

Page 23: Monitoring with Stackdriver

TODO.txt● Expand app metrics with statsd● Automate group creation & management● Annotate orchestrated events● Cloudwatch custom metrics● Stackdriver @ our colo

Page 24: Monitoring with Stackdriver

Thanks!

Questions?

denise stockman [email protected]

github.com/maverixbio/puppet-stackdriver-agentforge.puppetlabs.com/dstockman/stackdriver


Recommended