alerter

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package alerter implements an alerter to send sms/email messages on anomalies found.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerter

type Alerter struct {

	// Input
	In chan *models.Metric
	// contains filtered or unexported fields
}

Alerter alerts on anomalies detected.

func New

func New(cfg *config.Config, db *storage.DB) *Alerter

New creates a alerter.

func (*Alerter) Start

func (al *Alerter) Start()

Start several goroutines to wait for detected metrics, then check each metric with all the rules, the configured shell command will be executed once a rule is hit.

Directories

Path Synopsis
Example alerter command to echo message to console.
Example alerter command to echo message to console.

Jump to

Keyboard shortcuts

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