Versions in this module Expand all Collapse all v1 v1.15.0 Sep 4, 2024 v1.14.0 Jul 30, 2024 v1.13.0 Jun 18, 2024 v1.12.0 Apr 17, 2024 v1.11.0 Feb 21, 2024 v1.10.0 Jan 16, 2024 v1.9.0 Dec 18, 2023 v1.8.0 Nov 28, 2023 v1.7.0 Nov 27, 2023 v1.6.0 Nov 1, 2023 v1.5.0 Aug 30, 2023 v1.4.0 Aug 8, 2023 v1.3.0 Jul 7, 2023 v1.2.0 Jul 7, 2023 v1.1.0 Jun 14, 2023 v1.0.1 Mar 23, 2022 v1.0.0 Mar 22, 2022 Changes in this version + const STARTED + const STARTING + const STOPPED + type AlertingConfig struct + AlertRelabelConfigs []*RelabelConfig + AlertmanagerConfigs []*AlertmanagerConfig + type AlertingNameConfig struct + Name string + Rules []*RulesConfig + type AlertingRulesConfig struct + Groups []*AlertingNameConfig + type AlertingRulesManager struct + RulesConfig *AlertingRulesConfig + func NewRulesManager(config *option.Config) *AlertingRulesManager + func (a *AlertingRulesManager) AddRules(val AlertingNameConfig) error + func (a *AlertingRulesManager) InitRulesConfig() + func (a *AlertingRulesManager) LoadAlertingRulesConfig() error + func (a *AlertingRulesManager) SaveAlertingRulesConfig() error + type AlertmanagerConfig struct + HTTPClientConfig HTTPClientConfig + PathPrefix string + RelabelConfigs []*RelabelConfig + Scheme string + ServiceDiscoveryConfig ServiceDiscoveryConfig + Timeout time.Duration + type BasicAuth struct + Password Secret + PasswordFile string + Username string + XXX map[string]interface{} + type Config struct + AlertingConfig AlertingConfig + GlobalConfig GlobalConfig + RemoteReadConfigs []*RemoteReadConfig + RemoteWriteConfigs []*RemoteWriteConfig + RuleFiles []string + ScrapeConfigs []*ScrapeConfig + type GlobalConfig struct + EvaluationInterval model.Duration + ExternalLabels model.LabelSet + ScrapeInterval model.Duration + ScrapeTimeout model.Duration + type Group struct + Labels model.LabelSet + Source string + Targets []string + type HTTPClientConfig struct + BasicAuth *BasicAuth + BearerToken Secret + BearerTokenFile string + ProxyURL URL + TLSConfig TLSConfig + XXX map[string]interface{} + type Manager struct + Config *Config + Opt *option.Config + Process *os.Process + Registry *discover.KeepAlive + Status int + func NewManager(config *option.Config, a *AlertingRulesManager) *Manager + func (p *Manager) LoadConfig() error + func (p *Manager) ReloadConfig() error + func (p *Manager) SaveConfig() error + func (p *Manager) StartDaemon(errchan chan error) + func (p *Manager) StopDaemon() + func (p *Manager) UpdateAndRemoveScrape(remove []*ScrapeConfig, scrapes ...*ScrapeConfig) + func (p *Manager) UpdateScrape(scrapes ...*ScrapeConfig) + type NamespaceDiscovery struct + Names []string + type QueueConfig struct + BatchSendDeadline time.Duration + Capacity int + MaxBackoff time.Duration + MaxRetries int + MaxSamplesPerSend int + MaxShards int + MinBackoff time.Duration + type Regexp struct + func MustNewRegexp(s string) Regexp + func NewRegexp(s string) (Regexp, error) + func (re *Regexp) UnmarshalYAML(unmarshal func(interface{}) error) error + func (re Regexp) MarshalYAML() (interface{}, error) + type RelabelAction string + type RelabelConfig struct + Action RelabelAction + Modulus uint64 + Regex Regexp + Replacement string + Separator string + SourceLabels model.LabelNames + TargetLabel string + type RemoteReadConfig struct + HTTPClientConfig HTTPClientConfig + ReadRecent bool + RemoteTimeout model.Duration + RequiredMatchers model.LabelSet + URL *URL + type RemoteWriteConfig struct + HTTPClientConfig HTTPClientConfig + QueueConfig QueueConfig + RemoteTimeout model.Duration + URL *URL + WriteRelabelConfigs []*RelabelConfig + type Role string + const RoleEndpoint + const RoleIngress + const RoleNode + const RolePod + const RoleService + type RulesConfig struct + Alert string + Annotations map[string]string + Expr string + For string + Labels map[string]string + type SDConfig struct + NamespaceDiscovery NamespaceDiscovery + Role Role + Selectors []SelectorConfig + type ScrapeConfig struct + HTTPClientConfig HTTPClientConfig + HonorLabels bool + JobName string + MetricRelabelConfigs []*RelabelConfig + MetricsPath string + Params url.Values + RelabelConfigs []*RelabelConfig + SampleLimit uint + Scheme string + ScrapeInterval model.Duration + ScrapeTimeout model.Duration + ServiceDiscoveryConfig ServiceDiscoveryConfig + type Secret string + type SelectorConfig struct + Field string + Label string + Role Role + type ServiceDiscoveryConfig struct + KubernetesSDConfigs []*SDConfig + StaticConfigs []*Group + type ServiceMonitorController struct + Prometheus *Manager + func NewServiceMonitorController(ctx context.Context, config *rest.Config, pm *Manager) (*ServiceMonitorController, error) + func (s *ServiceMonitorController) OnAdd(obj interface{}) + func (s *ServiceMonitorController) OnDelete(obj interface{}) + func (s *ServiceMonitorController) OnUpdate(oldObj, newObj interface{}) + func (s *ServiceMonitorController) Run(stopCh <-chan struct{}) + type TLSConfig struct + CAFile string + CertFile string + InsecureSkipVerify bool + KeyFile string + ServerName string + XXX map[string]interface{} + type URL struct v1.0.0-beta Mar 3, 2022