goroutine 91787208 [running]: runtime/pprof.writeGoroutineStacks({0x7fbbd00c9528, 0xc000850200}) /usr/local/go/src/runtime/pprof/pprof.go:693 +0x70 runtime/pprof.writeGoroutine({0x7fbbd00c9528, 0xc000850200}, 0x0) /usr/local/go/src/runtime/pprof/pprof.go:682 +0x2b runtime/pprof.(*Profile).WriteTo(0xc6b7e0, {0x7fbbd00c9528, 0xc000850200}, 0xc) /usr/local/go/src/runtime/pprof/pprof.go:331 +0x14b net/http/pprof.handler.ServeHTTP({0xce45d7, 0x2a}, {0x7fbbd00b7ed8, 0xc000850200}, 0xc0000a1748) /usr/local/go/src/net/http/pprof/pprof.go:253 +0x49a net/http.HandlerFunc.ServeHTTP(...) /usr/local/go/src/net/http/server.go:2047 github.com/gin-contrib/pprof.pprofHandler.func1(0xc000850200) /data/app/vendor/github.com/gin-contrib/pprof/pprof.go:56 +0x49 github.com/gin-gonic/gin.(*Context).Next(...) /data/app/vendor/github.com/gin-gonic/gin/context.go:165 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc000850200) /data/app/vendor/github.com/gin-gonic/gin/recovery.go:99 +0x82 github.com/gin-gonic/gin.(*Context).Next(...) /data/app/vendor/github.com/gin-gonic/gin/context.go:165 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc000850200) /data/app/vendor/github.com/gin-gonic/gin/recovery.go:99 +0x82 github.com/gin-gonic/gin.(*Context).Next(...) /data/app/vendor/github.com/gin-gonic/gin/context.go:165 github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc000850200) /data/app/vendor/github.com/gin-gonic/gin/logger.go:241 +0xe7 github.com/gin-gonic/gin.(*Context).Next(...) /data/app/vendor/github.com/gin-gonic/gin/context.go:165 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0000ea4e0, 0xc000850200) /data/app/vendor/github.com/gin-gonic/gin/gin.go:489 +0x63e github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0000ea4e0, {0xdfa0c8, 0xc000a9ea80}, 0xc000851600) /data/app/vendor/github.com/gin-gonic/gin/gin.go:445 +0x1c5 net/http.serverHandler.ServeHTTP({0xc0008cb410}, {0xdfa0c8, 0xc000a9ea80}, 0xc000851600) /usr/local/go/src/net/http/server.go:2879 +0x43b net/http.(*conn).serve(0xc000302e60, {0xdfff40, 0xc0006187e0}) /usr/local/go/src/net/http/server.go:1930 +0xb08 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3034 +0x4e8 goroutine 1 [IO wait]: internal/poll.runtime_pollWait(0x7fbbd00f2000, 0x72) /usr/local/go/src/runtime/netpoll.go:303 +0x85 internal/poll.(*pollDesc).wait(0xc000129000, 0xc0000001a0, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc000129000) /usr/local/go/src/internal/poll/fd_unix.go:402 +0x22c net.(*netFD).accept(0xc000129000) /usr/local/go/src/net/fd_unix.go:173 +0x35 net.(*TCPListener).accept(0xc00011cac8) /usr/local/go/src/net/tcpsock_posix.go:140 +0x28 net.(*TCPListener).AcceptTCP(0xc00011cac8) /usr/local/go/src/net/tcpsock.go:249 +0x3d github.com/fvbock/endless.(*endlessListener).Accept(0xc000300e40) /data/app/vendor/github.com/fvbock/endless/endless.go:490 +0x3c net/http.(*Server).Serve(0xc00013c000, {0xdf9c78, 0xc000300e40}) /usr/local/go/src/net/http/server.go:3002 +0x394 github.com/fvbock/endless.(*endlessServer).Serve(0xc00013c000) /data/app/vendor/github.com/fvbock/endless/endless.go:195 +0x114 github.com/fvbock/endless.(*endlessServer).ListenAndServe(0xc00013c000) /data/app/vendor/github.com/fvbock/endless/endless.go:229 +0x1ed github.com/fvbock/endless.ListenAndServe({0xc0002f1c90, 0x0}, {0xdec680, 0xc0000ea4e0}) /data/app/vendor/github.com/fvbock/endless/endless.go:153 +0x2d main.main() /data/app/cmd/gateway/gateway.go:55 +0x589 goroutine 17 [chan receive]: github.com/ClickHouse/clickhouse-go.init.0.func1() /data/app/vendor/github.com/ClickHouse/clickhouse-go/bootstrap.go:50 +0x2d created by github.com/ClickHouse/clickhouse-go.init.0 /data/app/vendor/github.com/ClickHouse/clickhouse-go/bootstrap.go:47 +0x45 goroutine 33 [select, 116695 minutes]: database/sql.(*DB).connectionOpener(0xc000392000, {0xdffe98, 0xc000386040}) /usr/local/go/src/database/sql/sql.go:1196 +0x93 created by database/sql.OpenDB /usr/local/go/src/database/sql/sql.go:794 +0x188 goroutine 34 [select]: monitor-gateway/pkg/sink/clickhouse.(*CKSinker).processMetrics(0xc000123140) /data/app/pkg/sink/clickhouse/clickhouse.go:111 +0xcb monitor-gateway/pkg/sink/clickhouse.NewCKSinker.func1() /data/app/pkg/sink/clickhouse/clickhouse.go:61 +0x1d created by monitor-gateway/pkg/sink/clickhouse.NewCKSinker /data/app/pkg/sink/clickhouse/clickhouse.go:60 +0x187 goroutine 35 [select]: monitor-gateway/pkg/sink/tencent-log.(*ClsSinker).SendLogs(0xc000386380) /data/app/pkg/sink/tencent-log/cloud-log.go:112 +0xce monitor-gateway/pkg/sink/tencent-log.(*ClsSinker).InitClient.func1() /data/app/pkg/sink/tencent-log/cloud-log.go:88 +0x2a created by monitor-gateway/pkg/sink/tencent-log.(*ClsSinker).InitClient /data/app/pkg/sink/tencent-log/cloud-log.go:87 +0x2e5 goroutine 13 [select]: monitor-gateway/pkg/sink/tencent-tsdb.(*CTsdbSinker).processMetrics(0xc00030c1c0) /data/app/pkg/sink/tencent-tsdb/ctsdb.go:99 +0xbd monitor-gateway/pkg/sink/tencent-tsdb.NewCTsdbSinker.func1() /data/app/pkg/sink/tencent-tsdb/ctsdb.go:60 +0x1d created by monitor-gateway/pkg/sink/tencent-tsdb.NewCTsdbSinker /data/app/pkg/sink/tencent-tsdb/ctsdb.go:59 +0x29e goroutine 14 [chan receive, 46172 minutes]: gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun(0xc0001143c0) /data/app/vendor/gopkg.in/natefinch/lumberjack.v2/lumberjack.go:379 +0x45 created by gopkg.in/natefinch/lumberjack%2ev2.(*Logger).mill.func1 /data/app/vendor/gopkg.in/natefinch/lumberjack.v2/lumberjack.go:390 +0x93 goroutine 15 [chan receive, 116695 minutes]: github.com/fvbock/endless.(*endlessServer).handleSignals(0xc00013c000) /data/app/vendor/github.com/fvbock/endless/endless.go:326 +0xc5 created by github.com/fvbock/endless.(*endlessServer).ListenAndServe /data/app/vendor/github.com/fvbock/endless/endless.go:213 +0x9b goroutine 22 [syscall, 116695 minutes]: os/signal.signal_recv() /usr/local/go/src/runtime/sigqueue.go:169 +0x98 os/signal.loop() /usr/local/go/src/os/signal/signal_unix.go:24 +0x19 created by os/signal.Notify.func1.1 /usr/local/go/src/os/signal/signal.go:151 +0x2c goroutine 91779710 [select]: net/http.(*persistConn).writeLoop(0xc000174240) /usr/local/go/src/net/http/transport.go:2386 +0xfb created by net/http.(*Transport).dialConn /usr/local/go/src/net/http/transport.go:1748 +0x1e65 goroutine 91787290 [IO wait]: internal/poll.runtime_pollWait(0x7fbbd00f1f10, 0x72) /usr/local/go/src/runtime/netpoll.go:303 +0x85 internal/poll.(*pollDesc).wait(0xc0008e0900, 0xc000354000, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc0008e0900, {0xc000354000, 0x1000, 0x1000}) /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc0008e0900, {0xc000354000, 0xc000a3e690, 0xc0003316c8}) /usr/local/go/src/net/fd_posix.go:56 +0x29 net.(*conn).Read(0xc00000e640, {0xc000354000, 0x1, 0x1}) /usr/local/go/src/net/net.go:183 +0x45 net/http.(*connReader).Read(0xc000295cb0, {0xc000354000, 0x1000, 0x1000}) /usr/local/go/src/net/http/server.go:780 +0x16d bufio.(*Reader).fill(0xc0006ee240) /usr/local/go/src/bufio/bufio.go:101 +0x103 bufio.(*Reader).ReadSlice(0xc0006ee240, 0x0) /usr/local/go/src/bufio/bufio.go:360 +0x2f bufio.(*Reader).ReadLine(0xc0006ee240) /usr/local/go/src/bufio/bufio.go:389 +0x27 net/textproto.(*Reader).readLineSlice(0xc000295b00) /usr/local/go/src/net/textproto/reader.go:57 +0x99 net/textproto.(*Reader).ReadLine(...) /usr/local/go/src/net/textproto/reader.go:38 net/http.readRequest(0xc00039a300) /usr/local/go/src/net/http/request.go:1029 +0x79 net/http.(*conn).readRequest(0xc000376d20, {0xdffe98, 0xc0008c4b00}) /usr/local/go/src/net/http/server.go:966 +0x225 net/http.(*conn).serve(0xc000376d20, {0xdfff40, 0xc0006187e0}) /usr/local/go/src/net/http/server.go:1856 +0x865 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3034 +0x4e8 goroutine 91779709 [IO wait]: internal/poll.runtime_pollWait(0x7fbbcfccddc0, 0x72) /usr/local/go/src/runtime/netpoll.go:303 +0x85 internal/poll.(*pollDesc).wait(0xc0008e0c00, 0xc000334500, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc0008e0c00, {0xc000334500, 0x2306, 0x2306}) /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc0008e0c00, {0xc000334500, 0xc000334505, 0xd6}) /usr/local/go/src/net/fd_posix.go:56 +0x29 net.(*conn).Read(0xc0006303e8, {0xc000334500, 0x6, 0xc0000a37f8}) /usr/local/go/src/net/net.go:183 +0x45 crypto/tls.(*atLeastReader).Read(0xc0005fe3c0, {0xc000334500, 0x0, 0x409dcd}) /usr/local/go/src/crypto/tls/conn.go:778 +0x3d bytes.(*Buffer).ReadFrom(0xc00030e278, {0xdec2a0, 0xc0005fe3c0}) /usr/local/go/src/bytes/buffer.go:204 +0x98 crypto/tls.(*Conn).readFromUntil(0xc00030e000, {0xdedf80, 0xc0006303e8}, 0x2306) /usr/local/go/src/crypto/tls/conn.go:800 +0xe5 crypto/tls.(*Conn).readRecordOrCCS(0xc00030e000, 0x0) /usr/local/go/src/crypto/tls/conn.go:607 +0x112 crypto/tls.(*Conn).readRecord(...) /usr/local/go/src/crypto/tls/conn.go:575 crypto/tls.(*Conn).Read(0xc00030e000, {0xc000191000, 0x1000, 0x0}) /usr/local/go/src/crypto/tls/conn.go:1278 +0x16f net/http.(*persistConn).Read(0xc000174240, {0xc000191000, 0xc0002bc000, 0xc0000a3d30}) /usr/local/go/src/net/http/transport.go:1926 +0x4e bufio.(*Reader).fill(0xc00007fe60) /usr/local/go/src/bufio/bufio.go:101 +0x103 bufio.(*Reader).Peek(0xc00007fe60, 0x1) /usr/local/go/src/bufio/bufio.go:139 +0x5d net/http.(*persistConn).readLoop(0xc000174240) /usr/local/go/src/net/http/transport.go:2087 +0x1ac created by net/http.(*Transport).dialConn /usr/local/go/src/net/http/transport.go:1747 +0x1e05 goroutine 91787209 [IO wait]: internal/poll.runtime_pollWait(0x7fbbcfccdfa0, 0x72) /usr/local/go/src/runtime/netpoll.go:303 +0x85 internal/poll.(*pollDesc).wait(0xc000a36600, 0xc0008cb421, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc000a36600, {0xc0008cb421, 0x1, 0x1}) /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc000a36600, {0xc0008cb421, 0xc00059ed00, 0x4}) /usr/local/go/src/net/fd_posix.go:56 +0x29 net.(*conn).Read(0xc0003fe048, {0xc0008cb421, 0x14527e0, 0xc000a1bf68}) /usr/local/go/src/net/net.go:183 +0x45 net/http.(*connReader).backgroundRead(0xc0008cb410) /usr/local/go/src/net/http/server.go:672 +0x3f created by net/http.(*connReader).startBackgroundRead /usr/local/go/src/net/http/server.go:668 +0xcf