Sign inSign up

galexrt/node-exporter-smartmon

By galexrt

•Updated over 5 years ago

Docker Image with smartctl and prometheus/node_exporter smartmon.sh loop

Image
0

100K+

galexrt/node-exporter-smartmon repository overview

⁠docker-node_exporter-smartmon

This Docker image needs to be run in privileged mode for most of the scripts in the prometheus-community/node-exporter-textfile-collector-scripts repository, e.g., for smartctl.sh it is needed to be able to collect the SMART values.

Image available from Quay.io and Docker Hub (make sure to use the latest available (git) tags):

  • quay.io/galexrt/node-exporter-smartmon:v1.2.0
  • galexrt/node-exporter-smartmon:v1.2.0

An auto build is triggered every week, be sure to check the git tags.

⁠Credits

This docker image contains the prometheus-community/node-exporter-textfile-collector-scripts⁠ repository, so that any script can be easily used with / from this Docker image.

⁠Usage

The entrypoint script is putting the output into the directory /var/lib/node_exporter by default, filename smartmon.prom.

⁠Variables
NameDefaultDescription
SCRIPTsmartmon.shWhich of the node_exporter textfile collector scripts to run.
OUTPUT_FILENAMEsmartmonName of the output file (file ending is always .prom).
INTERVAL300Interval at which to run the script at.

Any flags / args given to the container are passed to the SCRIPT that will be executed.

⁠Grafana Dashboard

A Grafana dashboard for viewing the exported metrics can be found on Grafana.com - Smartmon Textfile by Galexrt⁠ and in the grafana/⁠ directory.

⁠Kubernetes

The kubernetes/⁠ directory contains an example DaemonSet for your Kubernetes cluster.

Tag summary

Content type

Image

Digest

Size

55.6 MB

Last updated

almost 6 years ago

docker pull galexrt/node-exporter-smartmon