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 AlertStateToRowClass map[rules.AlertState]string }
AlertStatus bundles alerting rules and the mapping of alert states to row classes.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves various HTTP endpoints of the Prometheus server
func New ¶
func New( st local.Storage, qe *promql.Engine, tm *retrieval.TargetManager, rm *rules.Manager, version *PrometheusVersion, flags map[string]string, o *Options, ) *Handler
New initializes a new web Handler.
func (*Handler) ApplyConfig ¶
ApplyConfig updates the status state as the new config requires. Returns true on success.
func (*Handler) ListenError ¶
ListenError returns the receive-only channel that signals errors while starting the web server.
func (*Handler) Quit ¶
func (h *Handler) Quit() <-chan struct{}
Quit returns the receive-only quit channel.
type Options ¶
type Options struct { ListenAddress string ExternalURL *url.URL RoutePrefix string MetricsPath string UseLocalAssets bool UserAssetsPath string ConsoleTemplatesPath string ConsoleLibrariesPath string EnableQuit bool }
Options for the web Handler.
type PrometheusVersion ¶
type PrometheusVersion struct { Version string `json:"version"` Revision string `json:"revision"` Branch string `json:"branch"` BuildUser string `json:"buildUser"` BuildDate string `json:"buildDate"` GoVersion string `json:"goVersion"` }
PrometheusVersion contains build information about Prometheus.
Click to show internal directories.
Click to hide internal directories.