GithubHelp home page GithubHelp logo

colstuwjx / cmonitor Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 15 KB

Another container hacky monitor for sth cadvisor could not covered.

License: Apache License 2.0

Python 95.02% Shell 4.98%
prometheus-exporter container metrics modules cadvisor

cmonitor's Introduction

CMonitor

Another container hacky monitor for sth cadvisor could not covered. CMonitor is designed for some missing metrics to cadvisor, such as process level metrics and tcp states etc.

design

CMonitor is dead simple and just:

  • use docker cp to sync modules(now, they are shells);
  • use docker exec to execute them and collect metrics.

limitation

CMonitor uses docker exec, docker cp to collect metrics, it's really unsafe and not predictable...

build

git clone [email protected]:Colstuwjx/cmonitor.git
cd cmonitor
docker build -t cmonitor:0.1 .

ship

docker push cmonitor:0.1

prepare configs

cp src/config/config.yml /opt/cmonitor-config.yml

run

# no TLS
docker run -itd \
    --net host \
    --restart always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /opt/cmonitor-config.yml:/config/config.yml \
    -e CONFIG_PATH=/config/config.yml \
    --name cmonitor \
    cmonitor:0.1
# with TLS, you need write TLS configs into cmonitor-config.yml
docker run -itd \
    --net host \
    --restart always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /opt/cmonitor-config.yml:/config/config.yml \
    -v /etc/pki/CA/:/etc/pki/CA/ \
    -e CONFIG_PATH=/config/config.yml \
    --name cmonitor \
    cmonitor:0.1

cmonitor's People

Contributors

colstuwjx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

muzuoan

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.