scanner

package
v1.10.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0, Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSeriesToChunkMapping

func GetSeriesToChunkMapping(HashValue string, RangeValue []byte) (user string, index int, seriesID string, chunkID string, err error)

e.RangeValue is: "userID:d<Index>:base64(sha256(labels))". Index is integer, base64 doesn't contain ':'.

func IsMetricLabelToLabelValueMapping

func IsMetricLabelToLabelValueMapping(RangeValue []byte) bool

func IsMetricToSeriesMapping

func IsMetricToSeriesMapping(RangeValue []byte) bool

func IsSeriesToChunkMapping

func IsSeriesToChunkMapping(RangeValue []byte) bool

Series to Chunk mapping uses \0 "3" \0 suffix of range value.

func IsSeriesToLabelValues

func IsSeriesToLabelValues(RangeValue []byte) bool

func UnknownIndexEntryType

func UnknownIndexEntryType(RangeValue []byte) string

Types

type Config

type Config struct {
	TableNames  string
	TablesLimit int

	PeriodStart flagext.DayValue
	PeriodEnd   flagext.DayValue

	OutputDirectory string
	Concurrency     int

	VerifyPlans bool
	UploadFiles bool
	KeepFiles   bool

	AllowedUsers       string
	IgnoredUserPattern string
}

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

type Scanner

type Scanner struct {
	services.Service
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(cfg Config, scfg blocksconvert.SharedConfig, l log.Logger, reg prometheus.Registerer) (*Scanner, error)

Jump to

Keyboard shortcuts

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