Versions in this module Expand all Collapse all v0 v0.54.2 Jan 28, 2025 Changes in this version + var LocalhostRepresentations = []string + var MaxTime = time.Unix(math.MaxInt64/1000-62135596801, 999999999).UTC() + var MinTime = time.Unix(math.MinInt64/1000+62135596801, 0).UTC() + func DefaultStatsRenderer(_ context.Context, s *stats.Statistics, param string) stats.QueryStats + type API struct + CORSOrigin *regexp.Regexp + ExemplarQueryable storage.ExemplarQueryable + QueryEngine promql.QueryEngine + Queryable storage.SampleAndChunkQueryable + func NewAPI(qe promql.QueryEngine, q storage.SampleAndChunkQueryable, ...) *API + func (api *API) ClearCodecs() + func (api *API) InstallCodec(codec Codec) + func (api *API) Register(r *route.Router) + type Alert struct + ActiveAt *time.Time + Annotations labels.Labels + KeepFiringSince *time.Time + Labels labels.Labels + State string + Value string + type AlertDiscovery struct + Alerts []*Alert + type AlertingRule struct + Alerts []*Alert + Annotations labels.Labels + Duration float64 + EvaluationTime float64 + Health rules.RuleHealth + KeepFiringFor float64 + Labels labels.Labels + LastError string + LastEvaluation time.Time + Name string + Query string + State string + Type string + type AlertmanagerDiscovery struct + ActiveAlertmanagers []*AlertmanagerTarget + DroppedAlertmanagers []*AlertmanagerTarget + type AlertmanagerRetriever interface + Alertmanagers func() []*url.URL + DroppedAlertmanagers func() []*url.URL + type AlertmanagerTarget struct + URL string + type Codec interface + CanEncode func(resp *Response) bool + ContentType func() MIMEType + Encode func(resp *Response) ([]byte, error) + type DroppedTarget struct + DiscoveredLabels labels.Labels + type GlobalURLOptions struct + Host string + ListenAddress string + Scheme string + type HeadStats struct + ChunkCount int64 + MaxTime int64 + MinTime int64 + NumLabelPairs int + NumSeries uint64 + type JSONCodec struct + func (j JSONCodec) CanEncode(_ *Response) bool + func (j JSONCodec) ContentType() MIMEType + func (j JSONCodec) Encode(resp *Response) ([]byte, error) + type MIMEType struct + SubType string + Type string + func (m MIMEType) Satisfies(accept goautoneg.Accept) bool + func (m MIMEType) String() string + type PrometheusVersion struct + Branch string + BuildDate string + BuildUser string + GoVersion string + Revision string + Version string + type QueryData struct + Result parser.Value + ResultType parser.ValueType + Stats stats.QueryStats + type QueryOpts interface + EnablePerStepStats func() bool + LookbackDelta func() time.Duration + type RecordingRule struct + EvaluationTime float64 + Health rules.RuleHealth + Labels labels.Labels + LastError string + LastEvaluation time.Time + Name string + Query string + Type string + type Response struct + Data interface{} + Error string + ErrorType errorType + Infos []string + Status status + Warnings []string + type Rule interface + type RuleDiscovery struct + RuleGroups []*RuleGroup + type RuleGroup struct + EvaluationTime float64 + File string + Interval float64 + LastEvaluation time.Time + Limit int + Name string + Rules []Rule + type RulesRetriever interface + AlertingRules func() []*rules.AlertingRule + RuleGroups func() []*rules.Group + type RuntimeInfo struct + CWD string + CorruptionCount int64 + GODEBUG string + GOGC string + GOMAXPROCS int + GOMEMLIMIT int64 + GoroutineCount int + LastConfigTime time.Time + ReloadConfigSuccess bool + StartTime time.Time + StorageRetention string + type ScrapePoolsDiscovery struct + ScrapePools []string + type ScrapePoolsRetriever interface + ScrapePools func() []string + type StatsRenderer func(context.Context, *stats.Statistics, string) stats.QueryStats + type TSDBAdminStats interface + CleanTombstones func() error + Delete func(ctx context.Context, mint, maxt int64, ms ...*labels.Matcher) error + Snapshot func(dir string, withHead bool) error + Stats func(statsByLabelName string, limit int) (*tsdb.Stats, error) + WALReplayStatus func() (tsdb.WALReplayStatus, error) + type TSDBStat struct + Name string + Value uint64 + func TSDBStatsFromIndexStats(stats []index.Stat) []TSDBStat + type TSDBStatus struct + HeadStats HeadStats + LabelValueCountByLabelName []TSDBStat + MemoryInBytesByLabelName []TSDBStat + SeriesCountByLabelValuePair []TSDBStat + SeriesCountByMetricName []TSDBStat + type Target struct + DiscoveredLabels labels.Labels + GlobalURL string + Health scrape.TargetHealth + Labels labels.Labels + LastError string + LastScrape time.Time + LastScrapeDuration float64 + ScrapeInterval string + ScrapePool string + ScrapeTimeout string + ScrapeURL string + type TargetDiscovery struct + ActiveTargets []*Target + DroppedTargetCounts map[string]int + DroppedTargets []*DroppedTarget + type TargetRetriever interface + TargetsActive func() map[string][]*scrape.Target + TargetsDropped func() map[string][]*scrape.Target + TargetsDroppedCounts func() map[string]int v0.54.1-promotel-v1.0.0 Jan 28, 2025