tsdb

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultTSDBBackfiller

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

func NewDefaultTSDBBackfiller

func NewDefaultTSDBBackfiller(
	logger *slog.Logger,
	prometheusExecName string,
	promtoolExecName string,
) *DefaultTSDBBackfiller

func (*DefaultTSDBBackfiller) BackfillOpenMetricsSeries

func (b *DefaultTSDBBackfiller) BackfillOpenMetricsSeries(
	ctx context.Context,
	openMetricsSeriesFileName string,
	tsdbDirName string,
) error

func (*DefaultTSDBBackfiller) BackfillRule

func (b *DefaultTSDBBackfiller) BackfillRule(
	ctx context.Context,
	prometheusRuleFileName string,
	start time.Time,
	end time.Time,
	tsdbDirName string,
) error

type DockerTSDBBackfiller

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

func NewDockerTSDBBackfiller

func NewDockerTSDBBackfiller(
	logger *slog.Logger,
	prometheusImage string,
) (*DockerTSDBBackfiller, error)

func (*DockerTSDBBackfiller) BackfillOpenMetricsSeries

func (b *DockerTSDBBackfiller) BackfillOpenMetricsSeries(
	ctx context.Context,
	openMetricsSeriesFileName string,
	tsdbDirName string,
) error

func (*DockerTSDBBackfiller) BackfillRule

func (b *DockerTSDBBackfiller) BackfillRule(
	ctx context.Context,
	prometheusRuleFileName string,
	start time.Time,
	end time.Time,
	tsdbDirName string,
) error

func (*DockerTSDBBackfiller) Close

func (b *DockerTSDBBackfiller) Close() error

func (*DockerTSDBBackfiller) Initialize

func (b *DockerTSDBBackfiller) Initialize(
	ctx context.Context,
) error

type TSDBBackfiller

type TSDBBackfiller interface {
	BackfillOpenMetricsSeries(
		ctx context.Context,
		openMetricsSeriesFileName string,
		tsdbDirName string,
	) error

	BackfillRule(
		ctx context.Context,
		prometheusRuleFileName string,
		start time.Time,
		end time.Time,
		tsdbDirName string,
	) error
}

Jump to

Keyboard shortcuts

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