Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DataDir string
EndpointID portainer.EndpointID
ScrapeTarget string
AlertmanagerTarget string
AlertmanagerHeaders map[string]string
ScrapeInterval time.Duration // default: 60s
InsecureSkipVerify bool
}
Config holds the configuration for the alert evaluator.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service embeds a Prometheus TSDB + rules.Manager for local alert rule evaluation.
func (*Service) AlertState ¶
func (s *Service) AlertState() []pkgmetrics.EdgeAlertRuleState
AlertState returns the current evaluation state for each alerting rule managed by this evaluator. This is intended for inclusion in the edge agent's poll request so the server can track rule health.
func (*Service) ReloadRules ¶
ReloadRules updates the active rule set from a YAML file on disk. Pass an empty string to clear all rules.
Click to show internal directories.
Click to hide internal directories.