[pkg-go] Bug#920827: Error parsing smartmon.prom after upgrade

Martín Ferrari tincho at tincho.org
Wed Jan 30 17:37:53 GMT 2019


On 30/01/2019 16:04, Antoine Beaupré wrote:

>>> I started seeing this in my logs on buster recently:
>>>
>>> jan 29 12:48:02 curie prometheus-node-exporter[940]: time="2019-01-29T12:48:02-05:00" level=error msg="Error parsing \"/var/lib/prometheus/node-exporter/smartmon.prom\": text format parsing error in line 54: unknown metric type \"type is not sat, scsi or megaraid but usbsunplus gauge\"" source="textfile.go:211" 

This is weird.. I can't replicate the problem at all. I have just copied
your file in the textfile directory, and I get no errors.

$ sudo cp smartmon.prom /var/lib/prometheus/node-exporter/

$ curl -s http://localhost:9100/metrics|grep
smartmon_end_to_end_error_threshold
# HELP smartmon_end_to_end_error_threshold SMART metric
end_to_end_error_threshold
# TYPE smartmon_end_to_end_error_threshold gauge
smartmon_end_to_end_error_threshold{disk="/dev/sdb",smart_id="184",type="sat"}
0

$ journalctl -u prometheus-node-exporter.service |tail -n1

Jan 30 16:47:31 aine prometheus-node-exporter[19201]:
time="2019-01-30T16:47:31Z" level=info msg="Listening on :9100"
source="node_exporter.go:170"

-- 
Martín Ferrari (Tincho)



More information about the Pkg-go-maintainers mailing list