Sign inSign up

bosix/simple-node-exporter

By bosix

Updated over 1 year ago

A simple node exporter for prometheus metrics

Image
0

4.1K

bosix/simple-node-exporter repository overview

A simple node exporter for prometheus metrics. It provides a subset of https://github.com/prometheus/node_exporter but smaller and without the necessity to mount the whole filesystem into the container.

Features

The simple-node-exporter only has one endpoint /metrics and provides the following metrics:

metricdescription
node_cpu_cores_totalnumber of cpu cores
node_cpu_usagecpu usage per core
node_disk_bytes_totaltotal bytes of disk space
node_disk_bytes_usedused bytes of disk space
node_load1cpu load 1 minute
node_load5cpu load 5 minute
node_load15cpu load 15 minute
node_memory_bytes_totaltotal bytes of memory
node_memory_bytes_usedused bytes of memory

Usage

You can simply use the following docker-compose.yml to test and use the simple-node-exporter

version: "3"

services:
    simple-node-exporter:
        image: bosix/simple-node-exporter
        ports:
            - 3322:3322
        environment:
            - "HOSTNAME=myhost"
docker-compose up -d

After starting the container you can call the metrics with curl http://localhost:3322/metrics. The environment-variable hostname can be used to identify the server. It will be added as a label to all metrics.

Further information

Please have a look at the gitlab repo for more information and the source code.

Tag summary

Content type

Image

Digest

sha256:5711eadf0

Size

19.1 MB

Last updated

over 1 year ago

docker pull bosix/simple-node-exporter