Documentation
¶
Index ¶
Constants ¶
View Source
const ( JobNameCadvisor = "Cadvisor" JobNameRancherHealthExporter = "RancherHealthExporter" JobNameNodeExporter = "NodeExporter" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
Record string `yaml:"record,omitempty"`
Alert string `yaml:"alert,omitempty"`
Expr string `yaml:"expr"`
For prommodel.Duration `yaml:"for,omitempty"`
Labels map[string]string `yaml:"labels,omitempty"`
Annotations map[string]string `yaml:"annotations,omitempty"`
}
Rule describes an alerting or recording rule.
type RuleGroup ¶
type RuleGroup struct {
Name string `yaml:"name"`
Interval prommodel.Duration `yaml:"interval,omitempty"`
Rules []Rule `yaml:"rules"`
}
RuleGroup is a list of sequentially evaluated recording and alerting rules.
type RuleGroups ¶
type RuleGroups struct {
Groups []RuleGroup `yaml:"groups"`
}
RuleGroups is a set of rule groups that are typically exposed in a file.
type Synchronizer ¶
type Synchronizer interface {
Run(stopc <-chan struct{}) error
}
func NewAlertRouteSynchronizer ¶
func NewAlertRouteSynchronizer(alertChan <-chan struct{}) Synchronizer
func NewAlertStateSynchronizer ¶
func NewAlertStateSynchronizer() Synchronizer
func NewPrometheusRuleSynchronizer ¶
func NewPrometheusRuleSynchronizer(promChan <-chan struct{}) Synchronizer
func NewPrometheusTargetSynchronizer ¶
func NewPrometheusTargetSynchronizer() Synchronizer
Click to show internal directories.
Click to hide internal directories.