Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Brian Christner
21 September 2016
Agenda
• Introduction
• Monitoring Overview
• Monitoring Components
• Demo
2
Brian Christner
Brian.Christner@swisscom.com / @idomyowntricks
> Swisscom Cloud Architect
> Docker Captain
> Background in...
Swisscom Developer Portal
Home for innovators and passionate developers
developer.swisscom.com
@Swisscom_Dev
Monitoring Overview
Monitoring & Docker Swarm Overview
Did someone say
Monitoring?
Monitoring Best Practices
• Label your Containers (key value pair)
• --label environment="production"
• Set Resource Limit...
Long vs Short Lived Containers
Long Lived Short Lived
Monitoring Components
What were building
https://github.com/vegasbrianc/prometheus
13
https://github.com/google/cadvisor
https://hub.docker.com/r/google/cadvisor
(Container Advisor)
Prometheus Node Exporter
https://github.com/r/prom/node-exporter
• Machine Metrics
• Pluggable Metrics
Prometheus Integrations
Official 3rd Party Exporters
• Blackbox
• CollectD
• Consul
• Graphite
• HAProxy
• InfluxDB
• JMX
...
MacBook Swarm
Internal Network Routing
Prometheus
MGR
Node01
cAdvisor My App
cAdvisor My App
Node02
cAdvisor My App
Grafan...
Compose File
Let’s have a look:
DEMO
Great Docker Resource –
http://veggiemonk.github.io/awesome-docker/
My Docker Projects - https://github.com/vegasbrianc
Do...
Questions?
Monitoring mayhem - Using Prometheus
Monitoring mayhem - Using Prometheus
Upcoming SlideShare
Loading in …5
×

Monitoring mayhem - Using Prometheus

421 views

Published on

How to monitor a Docker Swarms with Prometheues, Google cAdvisor & Node Exporter while sending alerts to Slack. This provides background on monitoring, some best practices and the landscape of containers at the moment.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Monitoring mayhem - Using Prometheus

  1. 1. Brian Christner 21 September 2016
  2. 2. Agenda • Introduction • Monitoring Overview • Monitoring Components • Demo 2
  3. 3. Brian Christner Brian.Christner@swisscom.com / @idomyowntricks > Swisscom Cloud Architect > Docker Captain > Background in Containers, Cloud, & Engineering About me
  4. 4. Swisscom Developer Portal Home for innovators and passionate developers developer.swisscom.com @Swisscom_Dev
  5. 5. Monitoring Overview
  6. 6. Monitoring & Docker Swarm Overview Did someone say Monitoring?
  7. 7. Monitoring Best Practices • Label your Containers (key value pair) • --label environment="production" • Set Resource Limits • Don’t overlert yourself
  8. 8. Long vs Short Lived Containers Long Lived Short Lived
  9. 9. Monitoring Components
  10. 10. What were building https://github.com/vegasbrianc/prometheus
  11. 11. 13 https://github.com/google/cadvisor https://hub.docker.com/r/google/cadvisor (Container Advisor)
  12. 12. Prometheus Node Exporter https://github.com/r/prom/node-exporter • Machine Metrics • Pluggable Metrics
  13. 13. Prometheus Integrations Official 3rd Party Exporters • Blackbox • CollectD • Consul • Graphite • HAProxy • InfluxDB • JMX • MEMcached • Mesos • MySQL • SNMP • StatsD Official Client Libraries • GO • Java or Scala • Python • Ruby Un-Official Client Libraries • Bash • Lisp • Elixr • Erlang • Haskell • Nua (NGINX) • .NET / C# • Node.js • PHP Directly Instrumented Software • cAdvisor • Node Ecporter • Doorman • Etcd • Kubernetes-Mesos • Kubernetes • RobustIRC • SkyDNS • Weave Flux
  14. 14. MacBook Swarm Internal Network Routing Prometheus MGR Node01 cAdvisor My App cAdvisor My App Node02 cAdvisor My App Grafana Alert Manager Promtheus Stack
  15. 15. Compose File
  16. 16. Let’s have a look: DEMO
  17. 17. Great Docker Resource – http://veggiemonk.github.io/awesome-docker/ My Docker Projects - https://github.com/vegasbrianc Docker Resources
  18. 18. Questions?

×