Commit d561d30d authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Corrige warnings y errores, agrega config

Omite sobreescritura de usuario, para dejar de usar root.

Anula recolector hwmon, no interesa en nodos virtuales.

Redirige ruta udev para evitar error detectado en logs.
parent 2eb3f467
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
services:
  node-exporter:
    image: ${IMAGE_NAME:-prom/node-exporter}:${IMAGE_TAG:-latest}
    user: root
    entrypoint: ${CONFIG_PATH}/entrypoint.sh
    command:
      - --web.listen-address=:${PORT}
@@ -9,9 +8,11 @@ services:
      - --path.rootfs=${HOST_PATH}
      - --path.sysfs=${HOST_PATH}/sys
      - --path.procfs=${HOST_PATH}/proc
      - --path.udev.data=${HOST_PATH}/root/run/udev/data
      - --collector.textfile.directory=${CONFIG_PATH}
      - --collector.filesystem.mount-points-exclude=^/(${MOUNT_POINTS_EXCLUDE})($$|/)
      - --no-collector.ipvs
      - --no-collector.hwmon
    environment:
      CONFIG_PATH:
      NODE_ID: '{{.Node.ID}}'