Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertStatus ¶
type AlertStatus struct {
AlertingRules []*rules.AlertingRule
}
type AlertsHandler ¶
type AlertsHandler struct {
RuleManager rules.RuleManager
// contains filtered or unexported fields
}
func (*AlertsHandler) ServeHTTP ¶
func (h *AlertsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DatabasesHandler ¶
type DatabasesHandler struct {
States []leveldb.DatabaseState
Incoming chan []leveldb.DatabaseState
// contains filtered or unexported fields
}
func (*DatabasesHandler) ServeHTTP ¶
func (h *DatabasesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PrometheusStatus ¶
type PrometheusStatus struct {
BuildInfo map[string]string
Config string
Curation metric.CurationState
Flags map[string]string
RuleManager rules.RuleManager
TargetPools map[string]*retrieval.TargetPool
Birth time.Time
}
type StatusHandler ¶
type StatusHandler struct {
CurationState chan metric.CurationState
PrometheusStatus *PrometheusStatus
// contains filtered or unexported fields
}
func (*StatusHandler) ServeHTTP ¶
func (h *StatusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WebService ¶
type WebService struct {
StatusHandler *StatusHandler
DatabasesHandler *DatabasesHandler
MetricsHandler *api.MetricsService
AlertsHandler *AlertsHandler
}
func (WebService) ServeForever ¶
func (w WebService) ServeForever() error
Click to show internal directories.
Click to hide internal directories.