package
2.25.0-snrc.5
Repository: https://github.com/rajvikram/prometheus.git
Documentation: pkg.go.dev

# Functions

EngineQueryFunc returns a new query function that executes instant queries against the given engine.
NewAlertingRule constructs a new AlertingRule.
NewGroup makes a new Group with the given name, options, and rules.
NewGroupMetrics creates a new instance of Metrics and registers it with the provided registerer, if not nil.
NewManager returns an implementation of Manager, ready to be started by calling the Run method.
NewRecordingRule returns a new recording rule.

# Constants

The possible health states of a rule based on the last execution.
The possible health states of a rule based on the last execution.
The possible health states of a rule based on the last execution.
StateFiring is the state of an alert that has been active for longer than the configured threshold duration.
StateInactive is the state of an alert that is neither firing nor pending.
StatePending is the state of an alert that has been active for less than the configured threshold duration.

# Structs

Alert is the user-level representation of a single instance of an alerting rule.
An AlertingRule generates alerts from its vector expression.
FileLoader is the default GroupLoader implementation.
Group is a set of rules that have a logical relation.
No description provided by the author
The Manager manages recording and alerting rules.
ManagerOptions bundles options for the Manager.
Metrics for rule evaluation.
A RecordingRule records its vector expression into new timeseries.

# Interfaces

GroupLoader is responsible for loading rule groups from arbitrary sources and parsing them.
A Rule encapsulates a vector expression which is evaluated at a specified interval and acted upon (currently either recorded or used for alerting).

# Type aliases

AlertState denotes the state of an active alert.
NotifyFunc sends notifications about a set of alerts generated by the given expression.
QueryFunc processes PromQL queries.
RuleHealth describes the health state of a rule.