node-exporter
Containerized, multiarch version of node-exporter, used for Prometheus monitoring. Multi-stage build is used to build from official node-exporter source code. Designed to be usable within x86-64, arm64, armv6, and armv7 based Docker Swarm clusters. Added support for correct reporting of the underlying node hostname
Automated Build and Deploy
This repository utilizes GitHub Actions to automatically build and deploy multiarch images to DockerHub when a new tag is pushed.
Build and Deploy multiarch image locally
Setup local environment to support Docker experimental feature for building multi architecture images, buildx. Follow instructions here
Clone repo:
$ git clone https://github.com/jmb12686/node-exporter
$ cd node-exporter Build multiarch image:
$ docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v6 -t jmb12686/node-exporter:latest --push .Usage
Use in docker-compose swarm stack similar to base image for prom/node-exporter, but added:
NODE_IDas environment variable- mount
/etc/hostnameof underlying host to/etc/nodenamein the container. - Entrypoint script within container will use
/etc/nodenameandNODE_IDto create custom data attributes and put config in/etc/node-exporter. node-nameandnode-idattributes are exposed in node-exporter
services:
.....
node-exporter:
image: jmb12686/node-exporter:latest
networks:
- net
environment:
- NODE_ID={{.Node.ID}}
ports:
- 9100:9100
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
- /etc/hostname:/etc/nodename:ro
command:
- '--path.sysfs=/host/sys'
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--collector.textfile.directory=/etc/node-exporter/'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
- '--no-collector.ipvs'
deploy:
mode: global
resources:
limits:
memory: 32M
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
