Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitExporters ¶
func InitExporters(exportersConfig ExportersConfig)
InitExporters initializes all exporters
func PriorityToStatus ¶
func SendAlert ¶
func SendAlert(failedRule rule.RuleFailure)
Types ¶
type AlertManagerExporter ¶
type AlertManagerExporter struct { Host string NodeName string // contains filtered or unexported fields }
func InitAlertManagerExporter ¶
func InitAlertManagerExporter(alertmanagerURL string) *AlertManagerExporter
func (*AlertManagerExporter) SendAlert ¶
func (ame *AlertManagerExporter) SendAlert(failedRule rule.RuleFailure)
type Exporter ¶
type Exporter interface { // SendAlert sends an alert to the exporter SendAlert(failedRule rule.RuleFailure) }
generic exporter interface
type ExportersConfig ¶
type StdoutExporter ¶
type StdoutExporter struct {
// contains filtered or unexported fields
}
func InitStdoutExporter ¶
func InitStdoutExporter(useStdout *bool) *StdoutExporter
func (*StdoutExporter) SendAlert ¶
func (exporter *StdoutExporter) SendAlert(failedRule rule.RuleFailure)
Click to show internal directories.
Click to hide internal directories.