# Functions
AddRuleTokenToGroupName adds a rule shard token to a given group's name to make it unique.
No description provided by the author
No description provided by the author
NewAPI returns a new API struct with the provided ruler and rule store.
No description provided by the author
No description provided by the author
NewLegacyRuleStore returns a rule store backend client based on the provided cfg.
NewManagerMetrics returns a ManagerMetrics struct.
No description provided by the author
NewRuler creates a new ruler from a distributor and chunk store.
No description provided by the author
NewRuleStore returns a rule store backend client based on the provided cfg.
No description provided by the author
No description provided by the author
RemoveRuleTokenFromGroupName removes the rule shard token from the group name.
SendAlerts implements a rules.NotifyFunc for a Notifier.
TranslateToPromqlAPIError converts error to one of promql.Errors for consumption in PromQL API.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
RuleGroupLabel is the label added by Prometheus, the value of which comes from the GroupKey function.
# Variables
ErrBadRuleGroup is returned when the provided rule group can not be unmarshalled.
No description provided by the author
No description provided by the author
ErrNoGroupName signals a group name url parameter was not found.
ErrNoNamespace signals that no namespace was specified in the request.
ErrNoRuleGroups signals the rule group requested does not exist.
RingOp is the operation used for distributing rule groups between rulers.
No description provided by the author
No description provided by the author
# Structs
Alert has info for an alert.
AlertDiscovery has info for all active alerts.
No description provided by the author
API is used to handle HTTP requests for the ruler service.
Config is the configuration for the recording rules server.
No description provided by the author
GroupStateDesc is a proto representation of a rule group.
ManagerMetrics aggregates metrics exported by the Prometheus rules package and returns them as Cortex metrics.
PusherAppendable fulfills the storage.Appendable interface for prometheus manager.
No description provided by the author
No description provided by the author
No description provided by the author
RingConfig masks the ring lifecycler config which contains many options not really required by the rulers ring.
RuleDiscovery has info for all rules.
RuleGroup has info for rules which are part of a group.
Ruler evaluates rules.
No description provided by the author
No description provided by the author
RuleStateDesc is a proto representation of a Prometheus Rule.
RuleStoreConfig configures a rule store.
UnimplementedRulerServer can be embedded to have forward compatible implementations.
# Interfaces
ClientsPool is the interface used to get the client from the pool for a specified address.
MultiTenantManager is the interface of interaction with a Manager that is tenant aware.
Pusher is an ingester server that accepts pushes.
RulerClient is the client API for Ruler service.
RulerServer is the server API for Ruler service.
RulesLimits defines limits used by Ruler.
This interface mimicks rules.Manager API.
# Type aliases
ErrTranslateFn is used to translate or wrap error before returning it by functions in storage.SampleAndChunkQueryable interface.
ManagerFactory is a function that creates new RulesManager for given user and notifier.Manager.
No description provided by the author
No description provided by the author