$30 off During Our Annual Pro Sale. View Details »

Monitoring and managing Containers using Open Source tools

jmortegac
October 12, 2020

Monitoring and managing Containers using Open Source tools

The world is advancing towards accelerated deployments using DevOps and cloud native technologies. In architectures based on microservices, container monitoring and management become even more important as we need to scale our application.

In this talk, I will show how to monitor and manage docker containers to manage the status of your applications. We will review how to monitor for security events using open source solutions to build an actionable monitoring system for Docker and Kubernetes.

Through a web interface, tools such as cadvisor, portainer and rancher give us a global overview of the containers you are running as well as facilitate their management.

These could be the main points to discuss:

*Challenges in containers and architectures distributed from the point of view of monitoring and administration
*Most important metrics that we can use to measure container performance.
*Tools for monitoring and management of containers such as cadvisor, sysdig and portainer
*Rancher as a platform for the administration of Kubernetes

jmortegac

October 12, 2020
Tweet

More Decks by jmortegac

Other Decks in Technology

Transcript

  1. openSUSE® 2020
    Monitoring and managing Containers using
    Open Source tools
    Monitoring and management with sysdig, portainer and
    Rancher
    Jose Manuel Ortega
    @jmortegac

    View Slide

  2. @jmortegac
    http://jmortega.github.io
    https://www.linkedin.com/in/jmortega1/

    View Slide

  3. https://bpbonline.com/products/devops-and-containers-security-
    security-and-monitoring-in-docker-containers

    View Slide

  4. ● Challenges in containers and architectures distributed.
    ● Metrics that we can use to measure container
    performance.
    ● Tools for monitoring and management of containers such
    as cadvisor, sysdig and portainer.
    ● Rancher as a platform for the administration of
    Kubernetes.
    < >

    View Slide

  5. ● Detecting issues and troubles.
    ● Changes and upgrades can be done safely.
    ● Refine applications for better performance and
    robustness.
    < >

    View Slide

  6. View Slide

  7. Finding the Most Relevant Metrics
    CPU
    Memory
    Input/Output
    Network
    traffic

    View Slide

  8. Docker stats

    View Slide

  9. docker stats [OPTIONS] [CONTAINER...]

    View Slide

  10. /containers/{id}/stats
    Docker Remote API
    /containers/{name}/stats

    View Slide

  11. curl -s http://localhost:2375/v1.12/containers
    //stats

    View Slide

  12. View Slide

  13. https://github.com/google/cadvisor

    View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. ● Others Docker container monitoring tool
    ○ https://ctop.sh

    View Slide

  18. ● Others Docker container monitoring tool
    ○ https://github.com/jesseduffield/lazydocker

    View Slide

  19. ● Exploring layers in docker images
    ○ https://github.com/wagoodman/dive

    View Slide

  20. View Slide

  21. View Slide

  22. View Slide

  23. Sysdig falco
    https://sysdig.com/opensource/falco/

    View Slide

  24. Sysdig falco
    https://sysdig.com/opensource/falco/

    View Slide

  25. Sysdig falco
    https://sysdig.com/opensource/falco/

    View Slide

  26. Sysdig falco
    https://sysdig.com/opensource/falco/

    View Slide

  27. View Slide

  28. View Slide

  29. View Slide

  30. View Slide

  31. View Slide

  32. View Slide

  33. View Slide

  34. View Slide

  35. View Slide

  36. View Slide

  37. View Slide

  38. View Slide

  39. View Slide

  40. View Slide

  41. View Slide

  42. View Slide

  43. View Slide

  44. View Slide

  45. https://www.katacoda.com/portainer/scenarios/deploying
    -to-swarm

    View Slide

  46. ● Challenges in containers and architectures distributed.
    ● Metrics that we can use to measure container
    performance.
    ● Tools for monitoring and management of containers such
    as cadvisor, sysdig and portainer.
    ● Rancher as a platform for the administration of
    Kubernetes.
    < > Conclusions

    View Slide

  47. View Slide

  48. Thank You
    Finish

    View Slide