Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManagerConfig ¶
type AlertManagerConfig struct { // URL of the Alertmanager to send notifications to. AlertmanagerURL string `yaml:"alertmanager_url"` // Whether to use DNS SRV records to discover Alertmanager. AlertmanagerDiscovery bool `yaml:"enable_alertmanager_discovery"` // How long to wait between refreshing the list of Alertmanager based on DNS service discovery. AlertmanagerRefreshInterval time.Duration `yaml:"alertmanager_refresh_interval"` // Enables the ruler notifier to use the Alertmananger V2 API. AlertmanangerEnableV2API bool `yaml:"enable_alertmanager_v2"` // Configuration for alert relabeling. AlertRelabelConfigs []*relabel.Config `yaml:"alert_relabel_configs,omitempty" doc:"description=List of alert relabel configs."` // Capacity of the queue for notifications to be sent to the Alertmanager. NotificationQueueCapacity int `yaml:"notification_queue_capacity"` // HTTP timeout duration when sending notifications to the Alertmanager. NotificationTimeout time.Duration `yaml:"notification_timeout"` // Client configs for interacting with the Alertmanager Notifier NotifierConfig `yaml:"alertmanager_client,omitempty"` }
type NotifierConfig ¶
type NotifierConfig struct { TLS tls.ClientConfig `yaml:",inline"` BasicAuth util.BasicAuth `yaml:",inline"` HeaderAuth util.HeaderAuth `yaml:",inline"` }
func (*NotifierConfig) RegisterFlags ¶
func (cfg *NotifierConfig) RegisterFlags(f *flag.FlagSet)
Click to show internal directories.
Click to hide internal directories.