Documentation ¶
Index ¶
- func JS(obj interface{}) string
- func WriteConfig(opts Options, filepath string) error
- type InvertedIndexUpdater
- type MetricSampleIteratorCreater
- type MetricsQuerier
- type OffsetIndexUpdater
- type Options
- type SampleIterator
- type SamplesWriter
- type SeriesStreamOffset
- type StreamID
- type StreamMetricOffset
- type StreamMetricQuerier
- type TSDB
- type WriteSampleCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteConfig ¶ added in v0.2.0
Types ¶
type InvertedIndexUpdater ¶
type InvertedIndexUpdater interface { //set labels to streamID indexß Insert(streamMetric invertedindex.StreamMetric) error }
type MetricSampleIteratorCreater ¶
type MetricSampleIteratorCreater interface {
CreateSampleSampleIterator(StreamMetric *StreamMetricOffset) (SampleIterator, error)
}
type MetricsQuerier ¶
type MetricsQuerier interface {
Query(matchers *[]prompb.LabelMatcher) (*[]model.Metric, error)
}
type OffsetIndexUpdater ¶
type OffsetIndexUpdater = ssoffsetindex.OffsetIndexUpdater
type Options ¶
type Options struct { BadgerDBStoreDir string `yaml:"badger_db_store_dir"` EnableStreamStore bool `yaml:"enable_stream_store"` EnableTBOffsetIndex bool `yaml:"enable_tb_offset_index"` ReadGorutines int `yaml:"read_gorutines"` StreamStoreOptions streamstore.Options `yaml:"stream_store_options"` FileStreamStoreOptions filestreamstore.FileStreamStoreOptions `yaml:"file_stream_store_options"` OffsetIndexOptions tboffsetindex.Options `yaml:"offset_index_options"` Debug struct { DumpReadRequestResponse bool `yaml:"dump_read_request_response"` LogWriteStat bool `yaml:"log_write_stat"` } `yaml:"debug"` Registerer prometheus.Registerer `yaml:"-"` }
func DefaultOptions ¶
DefaultOptions return default options with store path
func ParseConfig ¶ added in v0.2.0
ParseConfig parse config from file
type SampleIterator ¶
type SampleIterator interface { //io.EOF end of stream Next() (prompb.Sample, error) Close() error }
stream reader
type SamplesWriter ¶
type SamplesWriter interface {
Write(ID StreamID, samples []prompb.Sample, fn WriteSampleCallback)
}
type SeriesStreamOffset ¶
type SeriesStreamOffset = ssoffsetindex.SeriesStreamOffset
type StreamID ¶
type StreamID = invertedindex.StreamID
type StreamMetricOffset ¶
type StreamMetricOffset struct { invertedindex.StreamMetric Offset int64 // StartTimestampMs int64 // EndTimestampMs int64 }
type StreamMetricQuerier ¶
type StreamMetricQuerier interface {
QueryStreamMetric(*prompb.Query) ([]*StreamMetricOffset, error)
}
type TSDB ¶
type TSDB interface { WriteSamples(*prompb.WriteRequest) error ReadSamples(ctx context.Context, request *prompb.ReadRequest) (*prompb.ReadResponse, error) }
type WriteSampleCallback ¶
type WriteSampleCallback func(offset SeriesStreamOffset, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.