Documentation
¶
Index ¶
- type API
- func (a *API) AppendExemplar(ref storage.SeriesRef, l labels.Labels, e exemplar.Exemplar) (storage.SeriesRef, error)
- func (a *API) Appender(_ context.Context) storage.Appender
- func (a *API) ChunkQuerier(_, _ int64) (storage.ChunkQuerier, error)
- func (a *API) Close() error
- func (a *API) Delete(_ context.Context, mint int64, maxt int64, ms ...*labels.Matcher) error
- func (a *API) ExemplarQuerier(_ context.Context) (storage.ExemplarQuerier, error)
- func (a *API) Init(dataPath string, lo *slog.Logger, opts *cfg.Config) error
- func (a *API) Querier(mint, maxt int64) (storage.Querier, error)
- func (a *API) Snapshot(dir string, _ bool) error
- func (a *API) StartTime() (int64, error)
- func (a *API) Stats(statsByLabelName string, limit int) (result *tsdb.Stats, err error)
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) ChunkQuerier ¶
func (a *API) ChunkQuerier(_, _ int64) (storage.ChunkQuerier, error)
ChunkQuerier implements storage.ChunkQueryable.
func (*API) ExemplarQuerier ¶
ExemplarQuerier implements storage.ExemplarStorage.
func (*API) Snapshot ¶
Snapshot implements the api_v1.TSDBAdminStats and api_v2.TSDBAdmin interfaces.
Click to show internal directories.
Click to hide internal directories.