node_exporter icon indicating copy to clipboard operation
node_exporter copied to clipboard

Fatal Error: Concurrent Map Writes

Open calvinmorrow opened this issue 10 years ago • 2 comments

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

calvinmorrow avatar Aug 10 '16 17:08 calvinmorrow

Thanks for the report. This can happen with concurrent scrapes, this needs to be switched to ConstMetrics.

brian-brazil avatar Aug 10 '16 18:08 brian-brazil

Ouch. That collector's metrics handling is indeed badly broken. Fix is in https://github.com/prometheus/node_exporter/pull/281

juliusv avatar Aug 11 '16 22:08 juliusv