node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
smartmon scripts: quote in value
I fiddle with extracting data out of smartctl
.
A disk gives me this:
smartmon_device_info{device="/dev/bus/0",disk="megaraid,5",model_family="Toshiba 3.5\" DT01ACA... Desktop HDD",device_model="TOSHIBA DT01ACA100",serial_number="75NHT0MNS",firmware_version="MS2OA7C0"} 1
The problem is in
model_family="Toshiba 3.5\" DT01ACA... Desktop HDD"
There's an escaped quote after "3.5", this leads to issues with the text exporter. I browsed for various forks and versions of smartmon.sh and smartmon.py.
I currently seem to have the extraction fixed, but I seem to have some problematic data lines /metrics in prometheus. Sorry for being a bit offtopic: how can I delete these smartmon-related time series without deleting too much? I need to clean this up before I can dig further and check if the scripts work now.
I don't know if having quotes in the SMART values is OK.