Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertByStateCount ¶
type AlertStatus ¶
type AlertStatus struct { Groups []*rules.Group AlertStateToRowClass map[rules.AlertState]string Counts AlertByStateCount }
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 (*Handler) ApplyConfig ¶
ApplyConfig updates the config field of the Handler struct
func (*Handler) Quit ¶
func (h *Handler) Quit() <-chan struct{}
Quit returns the receive-only quit channel.
type Options ¶
type Options struct { Context context.Context TSDB func() *tsdb.DB TSDBCfg prometheus_tsdb.Options Storage storage.Storage QueryEngine *promql.Engine Version *PrometheusVersion Flags map[string]string ListenAddress string CORSOrigin *regexp.Regexp ReadTimeout time.Duration MaxConnections int ExternalURL *url.URL RoutePrefix string UseLocalAssets bool UserAssetsPath string ConsoleTemplatesPath string ConsoleLibrariesPath string EnableLifecycle bool EnableAdminAPI bool PageTitle string RemoteReadSampleLimit int RemoteReadConcurrencyLimit int RemoteReadBytesInFrame int Gatherer prometheus.Gatherer Registerer prometheus.Registerer }
Options for the web Handler.
type PrometheusVersion ¶
type PrometheusVersion = api_v1.PrometheusVersion
PrometheusVersion contains build information about Prometheus.
Click to show internal directories.
Click to hide internal directories.