prometheus-community / node-exporter-textfile-collector-scripts

Scripts for node-exporter's textfile collector
Apache License 2.0
512 stars 191 forks source link

Add new Python-based nvme_metrics collector #155

Closed dswarbrick closed 1 year ago

dswarbrick commented 1 year ago

This is a Python reimplementation of the existing nvme_metrics.sh script. It features several new metrics:

It retains backwards compatibility with the metric names of nvme_metrics.sh with one exception: The original nvme_critical_warning_total metric is incorrect, because the source is not a counter. The NVMe critical warning field, defined in section 5.16.1.3 of the NVMe Base Specification 2.0c, is a bitmap, and thus should be a gauge in Prometheus. As such, the metric is renamed to simply nvme_critical_warning.

It is my intention that this script should (eventually) supersede and replace the existing nvme_metrics.sh script.