dex
dex copied to clipboard
Prometheus Docker EXporter
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_bytesdex_block_io_write_bytesdex_container_runningdex_cpu_utilization_percentdex_cpu_utilization_seconds_totaldex_memory_total_bytesdex_memory_usage_bytesdex_memory_utilization_percentdex_network_rx_bytesdex_network_tx_bytesdex_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 8
Another dashboard for Grafana 8 (thanks @scMarkus !!!) as JSON

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