alertparser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertParser

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

AlertParser parses alerts from the Prometheus Alert Manager

func New

func New(configuration AlertParserConfiguration) AlertParser

New creates an AlertParser instance

func (AlertParser) Parse

func (alertParser AlertParser) Parse(alerts types.Alerts) (*types.AlertBucket, error)

Parse parses alerts coming from the Prometheus Alert Manager

type AlertParserConfiguration

type AlertParserConfiguration struct {
	IDTemplate      template.Template
	DefaultOID      string
	OIDLabel        string
	DefaultSeverity string
	Severities      []string
	SeverityLabel   string
}

AlertParserConfiguration stores configuration of an AlertParser

Jump to

Keyboard shortcuts

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