diff options
Diffstat (limited to 'roles/monitoring/prometheus/exporter')
-rw-r--r-- | roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/smartmon.j2 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/smartmon.j2 b/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/smartmon.j2 index c6bfba28..f564cc22 100644 --- a/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/smartmon.j2 +++ b/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/smartmon.j2 @@ -491,6 +491,7 @@ def collect_nvme_metrics(device): attribute_lines = attributes.strip().split('\n')[6:] for line in attribute_lines: label, value = line.split(':') + value = value.replace(',', '') if label == 'Available Spare': metrics['available_spare_ratio'].labels( device.base_labels["device"], device.base_labels["disk"] |