Affected by GO-2022-0915
and 1 other vulnerabilities
GO-2022-0915: Improper input validation in CNCF Cortex in github.com/cortexproject/cortex
GO-2024-3036: cortex establishes TLS connections with `InsecureSkipVerify` set to `true` in github.com/cortexproject/cortex
package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Feb 23, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
WALDir string `yaml:"wal_dir"`
ConcurrentFlushes int `yaml:"concurrent_flushes"`
FlushOpTimeout time.Duration `yaml:"flush_op_timeout"`
ExitAfterFlush bool `yaml:"exit_after_flush"`
}
Config for an Ingester.
func (cfg *Config) RegisterFlags(f *flag.FlagSet)
RegisterFlags adds the flags required to config this to the given FlagSet
type Flusher struct {
services.Service
}
Flusher is designed to be used as a job to flush the data from the WAL on disk.
Flusher works with both chunks-based and blocks-based ingesters.
func New(
cfg Config,
ingesterConfig ingester.Config,
chunkStore ingester.ChunkStore,
limits *validation.Overrides,
registerer prometheus.Registerer,
) (*Flusher, error)
New constructs a new Flusher and flushes the data from the WAL.
The returned Flusher has no other operations.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.