TheThingsArchive / ttn

The Things Network Stack V2
https://www.thethingsnetwork.org
MIT License
461 stars 276 forks source link

HTTP + gRPC Component Debug Endpoints #653

Closed htdvisser closed 7 years ago

htdvisser commented 7 years ago
rvolosatovs commented 7 years ago

there shouldn't be any need for https://github.com/TheThingsNetwork/ttn/blob/5ba1a1cb8961174568b612e067a73e7a8e41664a/cmd/pprof.go https://golang.org/pkg/net/http/pprof/ already provides a lot and is super easy to use and can be hidden behind a firewall. There should also be a way to bind it to a unix socket. Btw, we could also use https://godoc.org/github.com/prometheus/client_golang/prometheus for metrics. @dotpy3 did you have a chance to look at Prometheus?

htdvisser commented 7 years ago

This was resolved by 873cf38bbe6e63b4dd6de1727439d731f12079b1