Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportLoki ¶
func SupportLoki(support bool)
func SupportMimir ¶
func SupportMimir(support bool)
func SupportThanos ¶
func SupportThanos(support bool)
Types ¶
type GroupsWithComment ¶
type GroupsWithComment struct { Groups []RuleGroupWithComment `yaml:"groups"` // contains filtered or unexported fields }
func (*GroupsWithComment) DisabledValidators ¶
func (g *GroupsWithComment) DisabledValidators(commentPrefix string) []string
func (*GroupsWithComment) UnmarshalYAML ¶
func (g *GroupsWithComment) UnmarshalYAML(value *yaml.Node) error
type RuleGroup ¶
type RuleGroup struct { Name string `yaml:"name"` Interval model.Duration `yaml:"interval"` QueryOffset model.Duration `yaml:"query_offset"` Rules []RuleWithComment `yaml:"rules"` Limit int `yaml:"limit"` // Thanos only PartialResponseStrategy string `yaml:"partial_response_strategy"` // Cortex/Mimir only SourceTenants []string `yaml:"source_tenants"` // Loki only RWConfigs []loki.RemoteWriteConfig `yaml:"remote_write"` }
type RuleGroupWithComment ¶
type RuleGroupWithComment struct { RuleGroup // contains filtered or unexported fields }
func (*RuleGroupWithComment) DisabledValidators ¶
func (r *RuleGroupWithComment) DisabledValidators(commentPrefix string) []string
func (*RuleGroupWithComment) UnmarshalYAML ¶
func (r *RuleGroupWithComment) UnmarshalYAML(value *yaml.Node) error
type RuleWithComment ¶
type RuleWithComment struct {
// contains filtered or unexported fields
}
func (*RuleWithComment) DisabledValidators ¶
func (r *RuleWithComment) DisabledValidators(commentPrefix string) []string
func (*RuleWithComment) OriginalRule ¶
func (r *RuleWithComment) OriginalRule() rulefmt.Rule
func (*RuleWithComment) UnmarshalYAML ¶
func (r *RuleWithComment) UnmarshalYAML(value *yaml.Node) error
type RulesFile ¶
type RulesFile struct { Groups GroupsWithComment `yaml:"groups"` // Just so we can unmarshal also PromQL test files but ignore them because it has no Groups RuleFiles interface{} `yaml:"rule_files"` EvaluationInterval interface{} `yaml:"evaluation_interval"` GroupEvalOrder interface{} `yaml:"group_eval_order"` Tests interface{} `yaml:"tests"` // Loki only Namespace string `yaml:"namespace"` }
type RulesFileWithComment ¶
type RulesFileWithComment struct { RulesFile // contains filtered or unexported fields }
func (*RulesFileWithComment) DisabledValidators ¶
func (r *RulesFileWithComment) DisabledValidators(commentPrefix string) []string
func (*RulesFileWithComment) UnmarshalYAML ¶
func (r *RulesFileWithComment) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.