Versions in this module Expand all Collapse all v2 v2.13.1 Oct 8, 2023 Changes in this version + type API struct + CORSOrigin *regexp.Regexp + QueryEngine *promql.Engine + Queryable storage.Queryable + func NewAPI(qe *promql.Engine, q storage.Queryable, tr targetRetriever, ...) *API + func (api *API) Register(r *route.Router) + type Alert struct + ActiveAt *time.Time + Annotations labels.Labels + Labels labels.Labels + State string + Value string + type AlertDiscovery struct + Alerts []*Alert + type AlertmanagerDiscovery struct + ActiveAlertmanagers []*AlertmanagerTarget + DroppedAlertmanagers []*AlertmanagerTarget + type AlertmanagerTarget struct + URL string + type DroppedTarget struct + DiscoveredLabels map[string]string + type RuleDiscovery struct + RuleGroups []*RuleGroup + type RuleGroup struct + File string + Interval float64 + Name string + Rules []rule + type TSDBAdmin interface + CleanTombstones func() error + Delete func(mint, maxt int64, ms ...tsdbLabels.Matcher) error + Dir func() string + Snapshot func(dir string, withHead bool) error + type Target struct + DiscoveredLabels map[string]string + Health scrape.TargetHealth + Labels map[string]string + LastError string + LastScrape time.Time + ScrapeURL string + type TargetDiscovery struct + ActiveTargets []*Target + DroppedTargets []*DroppedTarget Other modules containing this package github.com/zpascal/prometheus