Code Monkey home page Code Monkey logo

docker-exporter's Introduction

docker-exporter

prometheus exporter for docker container stats

usage: python3 main.py --port <port> --interval <time>

if running this exporter in docker, the socket needs to be mounted to the container with the following argument: -v /var/run/docker.sock:/var/run/docker.sock

sample output:

# HELP docker_used_memory docker container used memory
# TYPE docker_used_memory gauge
docker_used_memory{image="docker-exporter:latest",name="docker-exporter"} 8.0175104e+07
# HELP docker_memory_limit docker container memory limit
# TYPE docker_memory_limit gauge
docker_memory_limit{image="docker-exporter:latest",name="docker-exporter"} 6.584666112e+010
# HELP docker_memory_usage_pct docker container memory usage %
# TYPE docker_memory_usage_pct gauge
docker_memory_usage_pct{image="docker-exporter:latest",name="docker-exporter"} 0.12176031804237973
# HELP docker_cpu_usage_pct docker container cpu usage %
# TYPE docker_cpu_usage_pct gauge
docker_cpu_usage_pct{image="docker-exporter:latest",name="docker-exporter"} 0.05769388012618296
# HELP docker_cpus_available docker container cpus available
# TYPE docker_cpus_available gauge
docker_cpus_available{image="docker-exporter:latest",name="docker-exporter"} 12.0
# HELP docker_network_rx_bytes docker container network rx bytes
# TYPE docker_network_rx_bytes gauge
docker_network_rx_bytes{image="docker-exporter:latest",interface="eth0",name="docker-exporter"} 2.137213e+06
# HELP docker_network_tx_bytes docker container network tx bytes
# TYPE docker_network_tx_bytes gauge
docker_network_tx_bytes{image="docker-exporter:latest",interface="eth0",name="docker-exporter"} 9.684747e+06

docker-exporter's People

Contributors

stegosaur 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.