Code Monkey home page Code Monkey logo

docker-exporter's Introduction

docker-exporter

Simple exporter for docker restarts

it exports two metrics:

  • docker_container_restart_count wich is Gauge from docker inspect for each container on the host
  • docker_container_healthy wich is 1 if container is up and running or healthcheck is passing and 0 if anything in between

It accepts following parameters:

  -interval duration
    	Interval between docker scrapes (default 1m0s)
  -listen string
    	Address to listen on (default ":8080")

it is based on docker EnvClient, hence use corresponding parameters as stated in the documentation:

// Use DOCKER_HOST to set the url to the docker server.
// Use DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest.
// Use DOCKER_CERT_PATH to load the tls certificates from.
// Use DOCKER_TLS_VERIFY to enable or disable TLS verification, off by default.

versioning

We follow following convention:

v0.1.0 where:

v0 - major release number, braking changes are accepted between those release versions

1 - second number is minor release number, there should be no braking chnages within it

0 - bugfix index, in case bugs were found within scope of current release, this number should identify amount of bugfix releases

docker-exporter's People

Contributors

ahammond avatar b00men avatar onorua avatar skudryashov avatar white-hat avatar

Watchers

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