Coder Social home page Coder Social logo

homecentr / docker-prometheus-node-exporter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 80 KB

Home Page: https://homecentr.github.io

License: MIT License

Dockerfile 20.36% Java 79.64%
prometheus-node-exporter prometheus-exporter prometheus homecentr docker-image

docker-prometheus-node-exporter's Introduction

Project status

CI/CD on master Regular Docker image vulnerability scan

HomeCentr - prometheus-node-exporter

This Docker image is a repack of the original Prometheus Node exporter with the usual Homecentr bells and whistles.

Usage

version: "3.7"
services:
  exporter:
    build: .
    image: homecentr/prometheus-node-exporter
    restart: unless-stopped
    environment:
      NODE_ID: "myserver"
      NODE_EXPORTER_ARGS: "--path.sysfs=/host/sys --path.procfs=/host/proc --collector.textfile.directory=/etc/node-exporter/ --collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/) --no-collector.ipvs"
    ports:
      - 9100:9100
    volumes:
      - /proc:/host/proc:ro
      - /sys:/host/sys:ro
      - /:/rootfs:ro
      - /etc/hostname:/etc/nodename

Environment variables

Name Default value Description
PUID 7077 UID of the user prometheus-node-exporter should be running as.
PGID 7077 GID of the user prometheus-node-exporter should be running as.
NODE_ID Name of the node which should be used as metrics label
NODE_EXPORTER_ARGS Additional command line arguments passed to the Node exporter executable. Please check the documentation in the original project.

Exposed ports

Port Protocol Description
9100 TCP Metrics served over HTTP by the Node exporter

Volumes

This container does not expose any explicit volumes, but for correct function, you need to mount the host's /proc, /sys/ and / so the exporter can evaluate the host's state a report it in the metrics. These directories can be mounted pretty much anywhere, you just need to specify the same path in the NODE_EXPORTER_ARGS variable as shown in the example above.

Security

The container is regularly scanned for vulnerabilities and updated. Further info can be found in the Security tab.

Container user

The container supports privilege drop. Even though the container starts as root, it will use the permissions only to perform the initial set up. The prometheus-node-exporter process runs as UID/GID provided in the PUID and PGID environment variables.

โš ๏ธ Do not change the container user directly using the user Docker compose property or using the --user argument. This would break the privilege drop logic.

docker-prometheus-node-exporter's People

Watchers

 avatar  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.