Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustBuildServerUrl ¶
func MustBuildServerUrl() string
Types ¶
type AlertStatus ¶
type AlertStatus struct {
AlertingRules []*rules.AlertingRule
AlertStateToRowClass map[rules.AlertState]string
}
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 DatabaseStatesProvider ¶
type DatabaseStatesProvider interface {
States() raw.DatabaseStates
}
type DatabasesHandler ¶
type DatabasesHandler struct {
RefreshInterval time.Duration
NextRefresh time.Time
Current raw.DatabaseStates
Provider DatabaseStatesProvider
// contains filtered or unexported fields
}
func (*DatabasesHandler) Refresh ¶
func (h *DatabasesHandler) Refresh()
func (*DatabasesHandler) ServeHTTP ¶
func (h *DatabasesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PrometheusStatusHandler ¶
type PrometheusStatusHandler 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
// contains filtered or unexported fields
}
func (*PrometheusStatusHandler) ServeHTTP ¶
func (h *PrometheusStatusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*PrometheusStatusHandler) UpdateCurationState ¶
func (h *PrometheusStatusHandler) UpdateCurationState(c *metric.CurationState)
type WebService ¶
type WebService struct {
StatusHandler *PrometheusStatusHandler
DatabasesHandler *DatabasesHandler
MetricsHandler *api.MetricsService
AlertsHandler *AlertsHandler
QuitDelegate func()
}
func (WebService) ServeForever ¶
func (w WebService) ServeForever() error
Click to show internal directories.
Click to hide internal directories.