Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StopFunc ¶
type StopFunc func()
func StartServer ¶
func StartServer(endpoints EndpointType, port int) StopFunc
StartServer starts an HTTP server providing access to Prometheus metrics and/or profiling information. endpoints specifies the endpoints to provide; it can be Metrics, Profile, or both (ored). port specifies the TCP port on which the server listens. The returned function should be called to shut down the server, typically at process exit using defer in the main() function.
Click to show internal directories.
Click to hide internal directories.