Documentation
¶
Overview ¶
Package healthserver provides a simplified HTTP server for Fleet Intelligence metrics export. This server focuses only on health monitoring and metrics export, removing all management functionality like package management, control plane connectivity, fault injection, and plugin systems.
Index ¶
Constants ¶
const URLPathInjectFault = "/inject-fault"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a simplified health metrics exporter server
func New ¶
func New(ctx context.Context, auditLogger log.AuditLogger, config *config.Config) (retServer *Server, retErr error)
New creates a new simplified health server for metrics export only
func (*Server) GetHealthExporter ¶
GetHealthExporter returns the health exporter instance (for offline mode access)
func (*Server) Stop ¶
func (s *Server) Stop()
Stop gracefully stops the server. It shuts down the HTTP listener first (draining in-flight requests), then tears down components and databases, and finally removes the unix socket file if one was used. Stop is safe to call multiple times; the defer in startServer and the signal handler in run.go both invoke it.