rules

package
v0.0.0-...-68d2f45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is a wrapper handling everything related to prometheus recording rules.

func NewManager

func NewManager(ctx context.Context, queryable storage.Queryable, baseRules map[string]string) *Manager

func (*Manager) CollectWithState

func (rm *Manager) CollectWithState(ctx context.Context, state registry.GatherState, app storage.Appender) error

func (*Manager) DiagnosticArchive

func (rm *Manager) DiagnosticArchive(_ context.Context, archive types.ArchiveWriter) error

func (*Manager) InputMetricMatchers

func (rm *Manager) InputMetricMatchers() []matcher.Matchers

InputMetricMatchers returns a list of matchers for metrics used as input or recording rules. Those metrics should pass from input if you expect recording rule to work correctly.

func (*Manager) MetricNames

func (rm *Manager) MetricNames() []string

MetricNames returns a list of all recording rules metric names. This is used for dynamic generation of metrics filter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL