Skip to content

Error index out of range #7

@linh060

Description

@linh060

Hi There,
Thanks for your exporter, it's very useful for me.
But I met an error as below:

2021/10/13 06:33:39 http: panic serving 10.29.81.43:41332: runtime error: index out of range goroutine 1356 [running]: net/http.(*conn).serve.func1(0xc00033a000) /home/phuslu/go.git/src/net/http/server.go:1754 +0xd0 panic(0x8b2ee0, 0xd0f820) /home/phuslu/go.git/src/runtime/panic.go:513 +0x1b9 main.(*Metrics).CollectFilesystem(0xc0004e8090, 0x0, 0x0) /home/phuslu/remote_node_exporter/remote_node_exporter.go:875 +0x18f7 main.(*Metrics).CollectAll(0xc0004e8090, 0xc0004e8090, 0x72, 0x0, 0x0) /home/phuslu/remote_node_exporter/remote_node_exporter.go:976 +0x178 main.main.func1(0x9c8020, 0xc0001c4000, 0xc0004e4000) /home/phuslu/remote_node_exporter/remote_node_exporter.go:1199 +0x7e net/http.HandlerFunc.ServeHTTP(0xc0000856e0, 0x9c8020, 0xc0001c4000, 0xc0004e4000) /home/phuslu/go.git/src/net/http/server.go:1972 +0x44 net/http.(*ServeMux).ServeHTTP(0xd1d840, 0x9c8020, 0xc0001c4000, 0xc0004e4000) /home/phuslu/go.git/src/net/http/server.go:2369 +0x127 net/http.serverHandler.ServeHTTP(0xc0001a21a0, 0x9c8020, 0xc0001c4000, 0xc0004e4000) /home/phuslu/go.git/src/net/http/server.go:2749 +0xab net/http.(*conn).serve(0xc00033a000, 0x9c88e0, 0xc000192080) /home/phuslu/go.git/src/net/http/server.go:1855 +0x646 created by net/http.(*Server).Serve /home/phuslu/go.git/src/net/http/server.go:2859 +0x2f5

Please kindly help me to fix it.
Thank You so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions