Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterForTelemetry ¶
Types ¶
type Config ¶
type Config struct { NotificationQueueCapacity int OutageTolerance time.Duration ForGracePeriod time.Duration ResendDelay time.Duration PrometheusConfigAddress string PrometheusConfig *prometheus_config.Config }
func (*Config) ContainsAlertingConfig ¶
func (*Config) ContainsRules ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(ctx context.Context, r prometheus.Registerer, client *pgclient.Client, cfg *Config) (*Manager, func() error, error)
func (*Manager) AlertingRules ¶
func (m *Manager) AlertingRules() []*prom_rules.AlertingRule
func (*Manager) ApplyConfig ¶
func (m *Manager) ApplyConfig(cfg *prometheus_config.Config) error
func (*Manager) RuleGroups ¶
func (m *Manager) RuleGroups() []*prom_rules.Group
func (*Manager) WithPostRulesProcess ¶
func (m *Manager) WithPostRulesProcess(f prom_rules.RuleGroupPostProcessFunc)
Click to show internal directories.
Click to hide internal directories.