Versions in this module Expand all Collapse all v2 v2.13.1 Oct 8, 2023 Changes in this version + type Appendable interface + Appender func() (storage.Appender, error) + type Manager struct + func NewManager(logger log.Logger, app Appendable) *Manager + func (m *Manager) ApplyConfig(cfg *config.Config) error + func (m *Manager) Run(tsets <-chan map[string][]*targetgroup.Group) error + func (m *Manager) Stop() + func (m *Manager) TargetsActive() map[string][]*Target + func (m *Manager) TargetsAll() map[string][]*Target + func (m *Manager) TargetsDropped() map[string][]*Target + type MetricMetadata struct + Help string + Metric string + Type textparse.MetricType + Unit string + type Target struct + func NewTarget(labels, discoveredLabels labels.Labels, params url.Values) *Target + func (t *Target) DiscoveredLabels() labels.Labels + func (t *Target) Health() TargetHealth + func (t *Target) Labels() labels.Labels + func (t *Target) LastError() error + func (t *Target) LastScrape() time.Time + func (t *Target) LastScrapeDuration() time.Duration + func (t *Target) Metadata(metric string) (MetricMetadata, bool) + func (t *Target) MetadataList() []MetricMetadata + func (t *Target) SetDiscoveredLabels(l labels.Labels) + func (t *Target) String() string + func (t *Target) URL() *url.URL + type TargetHealth string + const HealthBad + const HealthGood + const HealthUnknown + type Targets []*Target + func (ts Targets) Len() int + func (ts Targets) Less(i, j int) bool + func (ts Targets) Swap(i, j int) Other modules containing this package github.com/zpascal/prometheus