notifier

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier added in v1.0.0

type Notifier struct {
	// contains filtered or unexported fields
}

Notifier is responsible for dispatching alert notifications to an alert manager service.

func New added in v1.0.0

func New(o *Options) *Notifier

New constructs a new Notifier.

func (*Notifier) ApplyConfig added in v1.0.0

func (n *Notifier) ApplyConfig(conf *config.Config) error

ApplyConfig updates the status state as the new config requires.

func (*Notifier) Collect added in v1.0.0

func (n *Notifier) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector.

func (*Notifier) Describe added in v1.0.0

func (n *Notifier) Describe(ch chan<- *prometheus.Desc)

Describe implements prometheus.Collector.

func (*Notifier) Run added in v1.0.0

func (n *Notifier) Run()

Run dispatches notifications continuously.

func (*Notifier) Send added in v1.0.0

func (n *Notifier) Send(alerts ...*model.Alert)

Send queues the given notification requests for processing. Panics if called on a handler that is not running.

func (*Notifier) Stop added in v1.0.0

func (n *Notifier) Stop()

Stop shuts down the notification handler.

type Options

type Options struct {
	AlertmanagerURLs []string
	QueueCapacity    int
	Timeout          time.Duration
	ExternalLabels   model.LabelSet
	RelabelConfigs   []*config.RelabelConfig
}

Options are the configurable parameters of a Handler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL