package
0.11.3
Repository: https://github.com/grafana/cortex-tools.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CompareGroups differentiates between two rule groups.
CompareNamespaces returns the differences between the two provided namespaces.
Parse parses and validates a set of rules.
No description provided by the author
ParseFiles returns a formatted set of prometheus rule groups.
No description provided by the author
PrintComparisonResult prints the differences between the staged namespace and active namespace.
SummarizeChanges returns the number of each type of change in a set of changes.
ValidateRuleGroup validates a rulegroup.

# Constants

No description provided by the author
Created denotes their is not active namespace for the staged namespace.
Deleted denotes their is no staged namespace for the active namespace.
No description provided by the author
Unchanged denotes the active namespace is identical to the staged namespace.
Updated denotes the active namespace is different than the staged namespace.

# Structs

NamespaceChange stores the various changes between a staged set of changes and the active rules configs.
RuleNamespace is used to parse a slightly modified prometheus rule file format, if no namespace is set, the default namespace is used.
UpdatedRuleGroup is used to store an change between a rule group.

# Type aliases

NamespaceState is used to denote the difference between the staged namespace and active namespace for the cortex tenant.