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.
dex_block_io_read_bytes
dex_block_io_write_bytes
dex_container_running
dex_cpu_utilization_percent
dex_cpu_utilization_seconds_total
dex_memory_total_bytes
dex_memory_usage_bytes
dex_memory_utilization_percent
dex_network_rx_bytes
dex_network_tx_bytes
dex_pids_current
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
$ curl localhost:8386/metrics
Example grafana7 dashboard definition as JSON .
Another dashboard for Grafana 8 (thanks @scMarkus !!!) as JSON
Modification (thanks @GitSchorsch) with additional job filter as JSON