Giter Site home page Giter Site logo

docker-monitoring-module's Introduction

docker-monitoring-module

설계

  • Docker SDK for Python
    • Docs
    • 해당 SDK가 제공하는 API를 이용하여 도커 컨테이너의 메트릭을 가져옴
  • Psutil
    • 호스트 시스템의 자원 정보를 불러옴

모듈

  • 폴더 내부에 docker_inspection.json과 docker_stats.json이 있다. 이는 파이썬 SDK에서 docker stats 명령어와 docker inspection 명령어의 역할을 하는 메서드의 결과물을 저장한 것이다. 이 json 구조를 참고하여 코딩하였다.

  • 필요한 메트릭은 Docker Doc를 참고하여 주어진 공식대로 원하는 메트릭을 계산하여 사용하였다 (출처) image

폴더 구조 설명

  • Data : json 출력물을 저장하는 폴더
  • Docker_inspection.json : client.container.atts의 결과물
  • Docker_stats.json : client.container.stats의 결과물
  • Requirements.txt : 해당 프로그램을 돌리는데 필요한 종속성을 기록한 txt 파일

데모

image

docker-monitoring-module's People

Contributors

sith-call avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.