goroutine 23135603 [running]: runtime/pprof.writeGoroutineStacks({0x7f5e84bc5da8, 0xc000a33400}) /usr/local/go/src/runtime/pprof/pprof.go:693 +0x70 runtime/pprof.writeGoroutine({0x7f5e84bc5da8, 0xc000a33400}, 0x0) /usr/local/go/src/runtime/pprof/pprof.go:682 +0x2b runtime/pprof.(*Profile).WriteTo(0xc6b7e0, {0x7f5e84bc5da8, 0xc000a33400}, 0xc) /usr/local/go/src/runtime/pprof/pprof.go:331 +0x14b net/http/pprof.handler.ServeHTTP({0xce45d7, 0x2a}, {0x7f5e8491dcf0, 0xc000a33400}, 0xc000747748) /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(0xc000a33400) /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(0xc000a33400) /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(0xc000a33400) /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(0xc000a33400) /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(0xc000092680, 0xc000a33400) /data/app/vendor/github.com/gin-gonic/gin/gin.go:489 +0x63e github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000092680, {0xdfa0c8, 0xc000201500}, 0xc000235800) /data/app/vendor/github.com/gin-gonic/gin/gin.go:445 +0x1c5 net/http.serverHandler.ServeHTTP({0xc0000a7770}, {0xdfa0c8, 0xc000201500}, 0xc000235800) /usr/local/go/src/net/http/server.go:2879 +0x43b net/http.(*conn).serve(0xc00058dc20, {0xdfff40, 0xc0003835f0}) /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(0x7f5e84bfe000, 0x72) /usr/local/go/src/runtime/netpoll.go:303 +0x85 internal/poll.(*pollDesc).wait(0xc000311480, 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(0xc000311480) /usr/local/go/src/internal/poll/fd_unix.go:402 +0x22c net.(*netFD).accept(0xc000311480) /usr/local/go/src/net/fd_unix.go:173 +0x35 net.(*TCPListener).accept(0xc0000acab0) /usr/local/go/src/net/tcpsock_posix.go:140 +0x28 net.(*TCPListener).AcceptTCP(0xc0000acab0) /usr/local/go/src/net/tcpsock.go:249 +0x3d github.com/fvbock/endless.(*endlessListener).Accept(0xc0000b2fe0) /data/app/vendor/github.com/fvbock/endless/endless.go:490 +0x3c net/http.(*Server).Serve(0xc0000ca000, {0xdf9c78, 0xc0000b2fe0}) /usr/local/go/src/net/http/server.go:3002 +0x394 github.com/fvbock/endless.(*endlessServer).Serve(0xc0000ca000) /data/app/vendor/github.com/fvbock/endless/endless.go:195 +0x114 github.com/fvbock/endless.(*endlessServer).ListenAndServe(0xc0000ca000) /data/app/vendor/github.com/fvbock/endless/endless.go:229 +0x1ed github.com/fvbock/endless.ListenAndServe({0xc0000b0b90, 0x0}, {0xdec680, 0xc000092680}) /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 7 [select, 29590 minutes]: database/sql.(*DB).connectionOpener(0xc000300a90, {0xdffe98, 0xc0002fd040}) /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 8 [select]: monitor-gateway/pkg/sink/clickhouse.(*CKSinker).processMetrics(0xc0000b30e0) /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 9 [select]: monitor-gateway/pkg/sink/tencent-log.(*ClsSinker).SendLogs(0xc0002fd380) /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 65 [select]: monitor-gateway/pkg/sink/tencent-tsdb.(*CTsdbSinker).processMetrics(0xc00072e000) /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, 29590 minutes]: gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun(0xc00007e1e0) /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, 29590 minutes]: github.com/fvbock/endless.(*endlessServer).handleSignals(0xc0000ca000) /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 23 [syscall, 29590 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 23135604 [IO wait]: internal/poll.runtime_pollWait(0x7f5e84bfdf10, 0x72) /usr/local/go/src/runtime/netpoll.go:303 +0x85 internal/poll.(*pollDesc).wait(0xc000596100, 0xc0000a7781, 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(0xc000596100, {0xc0000a7781, 0x1, 0x1}) /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc000596100, {0xc0000a7781, 0xc0008ed1e0, 0x4}) /usr/local/go/src/net/fd_posix.go:56 +0x29 net.(*conn).Read(0xc0000ae710, {0xc0000a7781, 0x14527e0, 0xc000a1ff68}) /usr/local/go/src/net/net.go:183 +0x45 net/http.(*connReader).backgroundRead(0xc0000a7770) /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