Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is the monitoring endpoint. The monitoring endpoint provides counters for the service and a resource to do live traces of a running service. Overall performance is affected by the trace so use with caution on running systems under load.
func NewMonitoringServer ¶
NewMonitoringServer creates a new monitoring endpoint
func (*Server) ListenAddress ¶
ListenAddress returns the external reachable address for the monitoring service. If it is listening on the loopback adapter the loopback address is returned.
func (*Server) SetStatus ¶
SetStatus sets the health status that is reported, ie http.StatusOK or http.StatusServiceUnavailable
Click to show internal directories.
Click to hide internal directories.