Code Monkey home page Code Monkey logo

dex's Introduction

DEX - Docker EXporter for prometheus

Simple lightweight prometheus exporter. Runs as docker container on all architectures. Exports container state (running or not), current cpu and memory utilization, network and block I/O stats.

Currently exposed metrics

  • dex_block_io_read_bytes
  • dex_block_io_write_bytes
  • dex_container_running
  • dex_cpu_utilization_percent
  • dex_memory_total_bytes
  • dex_memory_usage_bytes
  • dex_memory_utilization_percent
  • dex_network_rx_bytes
  • dex_network_tx_bytes
  • dex_pids_current

Run with docker

Start docker container with following docker-compose.yml:

version: '2.1'
services:
   dex:
      image: spx01/dex
      container_name: dex
      volumes:
         - /var/run/docker.sock:/var/run/docker.sock
      ports:
         - 8386:8080
      restart: always

Test with curl

$ curl localhost:8386/metrics

Grafana dashboard

Grafana 7

Example grafana7 dashboard definition as JSON grafana-dashboard.

Grafana 8

Another dashboard for Grafana 8 (thanks @scMarkus !!!) as JSON grafana-dashboard

Modification (thanks @GitSchorsch) with additional job filter as JSON

dex's People

Contributors

0xerr0r avatar dependabot[bot] avatar dependabot-preview[bot] avatar roemer avatar gitschorsch 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.