Versions in this module Expand all Collapse all v2 v2.30.1 Jul 6, 2021 Changes in this version + type AlertByStateCount struct + Firing int32 + Inactive int32 + Pending int32 + type AlertStatus struct + AlertStateToRowClass map[rules.AlertState]string + Counts AlertByStateCount + Groups []*rules.Group + type Handler struct + func New(logger log.Logger, o *Options) *Handler + func (h *Handler) ApplyConfig(conf *config.Config) error + func (h *Handler) Listener() (net.Listener, error) + func (h *Handler) Quit() <-chan struct{} + func (h *Handler) Ready() + func (h *Handler) Reload() <-chan chan error + func (h *Handler) Run(ctx context.Context, listener net.Listener, webConfig string) error + type LocalStorage interface + type Options struct + CORSOrigin *regexp.Regexp + ConsoleLibrariesPath string + ConsoleTemplatesPath string + Context context.Context + EnableAdminAPI bool + EnableLifecycle bool + ExemplarStorage storage.ExemplarQueryable + ExternalURL *url.URL + Flags map[string]string + Gatherer prometheus.Gatherer + ListenAddress string + LocalStorage LocalStorage + LookbackDelta time.Duration + MaxConnections int + Notifier *notifier.Manager + PageTitle string + QueryEngine *promql.Engine + ReadTimeout time.Duration + Registerer prometheus.Registerer + RemoteReadBytesInFrame int + RemoteReadConcurrencyLimit int + RemoteReadSampleLimit int + RemoteWriteReceiver bool + RoutePrefix string + RuleManager *rules.Manager + ScrapeManager *scrape.Manager + Storage storage.Storage + TSDBDir string + TSDBMaxBytes units.Base2Bytes + TSDBRetentionDuration model.Duration + UseLocalAssets bool + UserAssetsPath string + Version *PrometheusVersion + type PrometheusVersion = api_v1.PrometheusVersion Other modules containing this package github.com/wangjc0216/prometheus