types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Init() error
	GetYaceOptions(logger Logger) ([]yace.OptionsFunc, error)
}

type Logger

type Logger interface {
	Init() error
	Log(level string, msg string, args ...any)
}

type MetricCollector added in v1.0.0

type MetricCollector interface {
	Init(func() ([]byte, error)) error
	CollectMetrics(Logger, Config) error
	ExportMetrics(Logger) ([]*io_prometheus_client.MetricFamily, error)
	GetRegistry() *prometheus.Registry
}

type MetricPersister

type MetricPersister interface {
	Init() error
	PersistMetrics([]prompb.TimeSeries, Logger) error
}

Jump to

Keyboard shortcuts

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