Documentation
¶
Index ¶
- Constants
- type Base
- type Blacklist
- type CMap
- func (m CMap) Add(key string, value int64)
- func (m CMap) Clear() int
- func (m CMap) Count() int
- func (m CMap) Exists(key string) bool
- func (m CMap) Expire(ctx context.Context, ttl time.Duration) (int, int64)
- func (m CMap) ExpireWorker(ctx context.Context, ttl time.Duration, expiredCounter *uint32)
- func (m CMap) GetShard(key string) *CMapShard
- func (m CMap) Merge(keys map[string]bool, value int64)
- type CMapShard
- type Config
- type DebugCacheDumper
- type Index
- type Points
- type Series
- type Tagged
- type Tree
- type Uploader
- type UploaderWithReset
Constants ¶
View Source
const DefaultTreeDate = 42 // 1970-02-12
View Source
const ReverseLevelOffset = 10000
View Source
const ReverseTreeLevelOffset = 30000
View Source
const TreeLevelOffset = 20000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶ added in v0.7.0
func (*Base) MarkAsFinished ¶ added in v0.7.0
func (*Base) RemoveFromQueue ¶ added in v0.7.0
type Blacklist ¶ added in v0.11.0
type Blacklist struct {
// contains filtered or unexported fields
}
func NewBlacklist ¶ added in v0.11.0
type CMap ¶
type CMap []*CMapShard
A "thread" safe map of type string:Anything. To avoid lock bottlenecks this map is dived to several (shardCount) map shards.
func (CMap) ExpireWorker ¶ added in v0.7.0
type CMapShard ¶
type CMapShard struct { sync.RWMutex // Read Write mutex, guards access to internal map. // contains filtered or unexported fields }
A "thread" safe string to anything map.
type Config ¶ added in v0.7.0
type Config struct { Type string `toml:"type"` // points, series, points-reverse, series-reverse TableName string `toml:"table"` // keep empty for same as key Timeout *config.Duration `toml:"timeout"` Date string `toml:"date"` // for tree table TreeDate time.Time `toml:"-"` ZeroTimestamp bool `toml:"zero-timestamp"` // for points, points-reverse tables Threads int `toml:"threads"` URL string `toml:"url"` CacheTTL *config.Duration `toml:"cache-ttl"` IgnoredPatterns []string `toml:"ignored-patterns,omitempty"` // points, points-reverse CompressData bool `toml:"compress-data"` //compress data while sending to clickhouse IgnoredTaggedMetrics []string `toml:"ignored-tagged-metrics"` // for tagged table; create only `__name__` tag for these metrics and ignore others Hash string `toml:"hash"` // in index uploader store hash in memory instead of full metric DisableDailyIndex bool `toml:"disable-daily-index"` // do not calculate and upload daily index to ClickHouse // contains filtered or unexported fields }
type DebugCacheDumper ¶ added in v0.9.0
type Points ¶ added in v0.7.0
type Points struct { *Base // contains filtered or unexported fields }
type UploaderWithReset ¶ added in v0.7.0
type UploaderWithReset interface {
Reset()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.