api

package
v0.0.0-...-f716c0e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API implements prometheus storage api on top of our own timeseries database.

func (*API) AppendExemplar

func (a *API) AppendExemplar(ref storage.SeriesRef, l labels.Labels, e exemplar.Exemplar) (storage.SeriesRef, error)

AppendExemplar implements storage.ExemplarStorage.

func (*API) Appender

func (a *API) Appender(_ context.Context) storage.Appender

Appender implements storage.Appendable

func (*API) ChunkQuerier

func (a *API) ChunkQuerier(_, _ int64) (storage.ChunkQuerier, error)

ChunkQuerier implements storage.ChunkQueryable.

func (*API) Close

func (a *API) Close() error

Close implements storage.Storage .

func (*API) Delete

func (a *API) Delete(_ context.Context, mint int64, maxt int64, ms ...*labels.Matcher) error

Delete implements the api_v1.TSDBAdminStats and api_v2.TSDBAdmin interfaces.

func (*API) ExemplarQuerier

func (a *API) ExemplarQuerier(_ context.Context) (storage.ExemplarQuerier, error)

ExemplarQuerier implements storage.ExemplarStorage.

func (*API) Init

func (a *API) Init(dataPath string, lo *slog.Logger, opts *cfg.Config) error

Init setup databases.

func (*API) Querier

func (a *API) Querier(mint, maxt int64) (storage.Querier, error)

Querier implements storage.Queryable.

func (*API) Snapshot

func (a *API) Snapshot(dir string, _ bool) error

Snapshot implements the api_v1.TSDBAdminStats and api_v2.TSDBAdmin interfaces.

func (*API) StartTime

func (a *API) StartTime() (int64, error)

StartTime implements storage.Storage.

func (*API) Stats

func (a *API) Stats(statsByLabelName string, limit int) (result *tsdb.Stats, err error)

Stats implements the api_v1.TSDBAdminStats interface.

Jump to

Keyboard shortcuts

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