Documentation
¶
Overview ¶
Package alerts manages Prometheus alert rules and Alertmanager routing for nSelf.
Index ¶
Constants ¶
View Source
const ( SeverityP1 = "P1" SeverityP2 = "P2" SeverityP3 = "P3" )
Severity levels for alert rules.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlertRule ¶
type AlertRule struct {
Name string `json:"name"`
Severity string `json:"severity"`
Expr string `json:"expr"`
For string `json:"for"`
Summary string `json:"summary"`
}
AlertRule describes a single Prometheus alert rule.
func DefaultRules ¶
func DefaultRules() []AlertRule
DefaultRules returns the 16 default nSelf alert rules.
Click to show internal directories.
Click to hide internal directories.