node_exporter
node_exporter copied to clipboard
Fatal Error: Concurrent Map Writes
Node exporter started crashing repeatedly on a couple Ubuntu 16.04 machines today.
Aug 10 11:20:58 ubuntu node_exporter[28774]: fatal error: concurrent map writes Aug 10 11:20:58 ubuntu node_exporter[28774]: goroutine 22 [running]: Aug 10 11:20:58 ubuntu node_exporter[28774]: runtime.throw(0xad1cf0, 0x15)
https://gist.github.com/calvinmorrow/44e332a1300f39072398af6015715db0
Thanks for the report. This can happen with concurrent scrapes, this needs to be switched to ConstMetrics.
Ouch. That collector's metrics handling is indeed badly broken. Fix is in https://github.com/prometheus/node_exporter/pull/281