Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.Database, reporter nodeMetrics, enableProf bool, healthChecker HealthChecker) Handler
NewMetricsHandler returns a new metrics handler.
type HealthChecker ¶ added in v1.1.0
type HealthChecker interface {
HealthCheck() error
}
HealthChecker represent an health-check agent
Click to show internal directories.
Click to hide internal directories.