Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessAgents ¶
func ProcessAgents(agents []HealthCheckAgent) []string
ProcessAgents takes a slice of HealthCheckAgent, and invokes them
func ReportSSVNodeHealthiness ¶ added in v0.4.7
func ReportSSVNodeHealthiness(healthy bool)
ReportSSVNodeHealthiness reports SSV node healthiness.
func WaitUntilHealthy ¶
WaitUntilHealthy takes some component (that implements HealthCheckAgent) and wait until it is healthy
Types ¶
type Handler ¶
type Handler interface { // Start starts an http server, listening to /metrics requests Start(logger *zap.Logger, mux *http.ServeMux, addr string) error }
Handler handles incoming metrics requests
func NewMetricsHandler ¶
func NewMetricsHandler(ctx context.Context, db basedb.IDb, enableProf bool, healthChecker HealthCheckAgent) Handler
NewMetricsHandler returns a new metrics handler.
type HealthCheckAgent ¶
type HealthCheckAgent interface {
HealthCheck() []string
}
HealthCheckAgent represent an health-check agent
Click to show internal directories.
Click to hide internal directories.