Documentation
¶
Overview ¶
Package ruler provides clients for deleting alerting and recording rules from ruler backends (Mimir and Loki) on cluster deletion.
Tenants in this codebase map to Grafana organizations (e.g. "giantswarm"). Use NewMulti to compose multiple backends; it implements Client so callers depend only on the interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// DeleteClusterRulesForTenant deletes all rule namespaces owned by tenantID
// whose name starts with clusterID (the mimir_namespace_prefix / loki_namespace_prefix
// set by Alloy, which equals the cluster name).
// Implementations must be idempotent: a tenant with no matching rules is not an error.
DeleteClusterRulesForTenant(ctx context.Context, tenantID, clusterID string) error
}
Client deletes recording and alerting rules from a ruler backend.
Click to show internal directories.
Click to hide internal directories.