Trying to run MongoDB exporter , but i've got an error , MongoDB has connection with exporter, but less than 1 sec
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x1 pc=0x809862c]
goroutine 1 [running]:
main.main()
goroutine 7 [chan receive]:
created by github.com/golang/glog.init·1
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_386.s:2287 +0x1
goroutine 8 [sleep]:
goroutine 12 [runnable]:
net.(*pollDesc).Wait(0x187294f8, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:84 +0x42
net.(*pollDesc).WaitRead(0x187294f8, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:89 +0x40
net.(*netFD).Read(0x187294c0, 0x18782d20, 0x24, 0x24, 0x0, 0xb74ffce8, 0x1879898c)
/usr/local/go/src/net/fd_unix.go:242 +0x2f0
net.(*conn).Read(0x187ab840, 0x18782d20, 0x24, 0x24, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:121 +0xba
goroutine 13 [sleep]: